var Pc=e=>{throw TypeError(e)};var pl=(e,t,n)=>t.has(e)||Pc("Cannot "+n);var P=(e,t,n)=>(pl(e,t,"read from private field"),n?n.call(e):t.get(e)),X=(e,t,n)=>t.has(e)?Pc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),D=(e,t,n,r)=>(pl(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ce=(e,t,n)=>(pl(e,t,"access private method"),n);var Ei=(e,t,n,r)=>({set _(o){D(e,t,o,n)},get _(){return P(e,t,r)}});function Lg(e,t){for(var n=0;nr[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Af(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Of={exports:{}},Fs={},Mf={exports:{}},G={};/** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var di=Symbol.for("react.element"),Fg=Symbol.for("react.portal"),zg=Symbol.for("react.fragment"),Dg=Symbol.for("react.strict_mode"),$g=Symbol.for("react.profiler"),Bg=Symbol.for("react.provider"),Wg=Symbol.for("react.context"),Ug=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Vg=Symbol.for("react.memo"),Qg=Symbol.for("react.lazy"),Tc=Symbol.iterator;function Kg(e){return e===null||typeof e!="object"?null:(e=Tc&&e[Tc]||e["@@iterator"],typeof e=="function"?e:null)}var _f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},If=Object.assign,Lf={};function oo(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||_f}oo.prototype.isReactComponent={};oo.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};oo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Ff(){}Ff.prototype=oo.prototype;function iu(e,t,n){this.props=e,this.context=t,this.refs=Lf,this.updater=n||_f}var su=iu.prototype=new Ff;su.constructor=iu;If(su,oo.prototype);su.isPureReactComponent=!0;var Nc=Array.isArray,zf=Object.prototype.hasOwnProperty,lu={current:null},Df={key:!0,ref:!0,__self:!0,__source:!0};function $f(e,t,n){var r,o={},i=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(i=""+t.key),t)zf.call(t,r)&&!Df.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(l===1)o.children=n;else if(1>>1,z=T[H];if(0>>1;Ho(he,I))Teo(J,he)?(T[H]=J,T[Te]=I,H=Te):(T[H]=he,T[q]=I,H=q);else if(Teo(J,I))T[H]=J,T[Te]=I,H=Te;else break e}}return R}function o(T,R){var I=T.sortIndex-R.sortIndex;return I!==0?I:T.id-R.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}var a=[],u=[],c=1,p=null,g=3,d=!1,E=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,m=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(T){for(var R=n(u);R!==null;){if(R.callback===null)r(u);else if(R.startTime<=T)r(u),R.sortIndex=R.expirationTime,t(a,R);else break;R=n(u)}}function S(T){if(y=!1,v(T),!E)if(n(a)!==null)E=!0,B(C);else{var R=n(u);R!==null&&U(S,R.startTime-T)}}function C(T,R){E=!1,y&&(y=!1,h(N),N=-1),d=!0;var I=g;try{for(v(R),p=n(a);p!==null&&(!(p.expirationTime>R)||T&&!$());){var H=p.callback;if(typeof H=="function"){p.callback=null,g=p.priorityLevel;var z=H(p.expirationTime<=R);R=e.unstable_now(),typeof z=="function"?p.callback=z:p===n(a)&&r(a),v(R)}else r(a);p=n(a)}if(p!==null)var K=!0;else{var q=n(u);q!==null&&U(S,q.startTime-R),K=!1}return K}finally{p=null,g=I,d=!1}}var b=!1,k=null,N=-1,_=5,O=-1;function $(){return!(e.unstable_now()-O<_)}function F(){if(k!==null){var T=e.unstable_now();O=T;var R=!0;try{R=k(!0,T)}finally{R?Q():(b=!1,k=null)}}else b=!1}var Q;if(typeof m=="function")Q=function(){m(F)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,Y=M.port2;M.port1.onmessage=F,Q=function(){Y.postMessage(null)}}else Q=function(){w(F,0)};function B(T){k=T,b||(b=!0,Q())}function U(T,R){N=w(function(){T(e.unstable_now())},R)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(T){T.callback=null},e.unstable_continueExecution=function(){E||d||(E=!0,B(C))},e.unstable_forceFrameRate=function(T){0>T||125H?(T.sortIndex=I,t(u,T),n(a)===null&&T===n(u)&&(y?(h(N),N=-1):y=!0,U(S,I-H))):(T.sortIndex=z,t(a,T),E||d||(E=!0,B(C))),T},e.unstable_shouldYield=$,e.unstable_wrapCallback=function(T){var R=g;return function(){var I=g;g=R;try{return T.apply(this,arguments)}finally{g=I}}}})(Qf);Vf.exports=Qf;var ov=Vf.exports;/** * @license React * react-dom.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var iv=x,Xe=ov;function j(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Gl=Object.prototype.hasOwnProperty,sv=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,jc={},Ac={};function lv(e){return Gl.call(Ac,e)?!0:Gl.call(jc,e)?!1:sv.test(e)?Ac[e]=!0:(jc[e]=!0,!1)}function av(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function uv(e,t,n,r){if(t===null||typeof t>"u"||av(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Fe(e,t,n,r,o,i,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=s}var Pe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Pe[e]=new Fe(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Pe[t]=new Fe(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Pe[e]=new Fe(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Pe[e]=new Fe(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Pe[e]=new Fe(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Pe[e]=new Fe(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Pe[e]=new Fe(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Pe[e]=new Fe(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Pe[e]=new Fe(e,5,!1,e.toLowerCase(),null,!1,!1)});var uu=/[\-:]([a-z])/g;function cu(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(uu,cu);Pe[t]=new Fe(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(uu,cu);Pe[t]=new Fe(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(uu,cu);Pe[t]=new Fe(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Pe[e]=new Fe(e,1,!1,e.toLowerCase(),null,!1,!1)});Pe.xlinkHref=new Fe("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Pe[e]=new Fe(e,1,!1,e.toLowerCase(),null,!0,!0)});function du(e,t,n,r){var o=Pe.hasOwnProperty(t)?Pe[t]:null;(o!==null?o.type!==0:r||!(2l||o[s]!==i[l]){var a=` `+o[s].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=s&&0<=l);break}}}finally{gl=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ko(e):""}function cv(e){switch(e.tag){case 5:return ko(e.type);case 16:return ko("Lazy");case 13:return ko("Suspense");case 19:return ko("SuspenseList");case 0:case 2:case 15:return e=vl(e.type,!1),e;case 11:return e=vl(e.type.render,!1),e;case 1:return e=vl(e.type,!0),e;default:return""}}function Zl(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Sr:return"Fragment";case wr:return"Portal";case Yl:return"Profiler";case fu:return"StrictMode";case ql:return"Suspense";case Xl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Yf:return(e.displayName||"Context")+".Consumer";case Gf:return(e._context.displayName||"Context")+".Provider";case pu:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case mu:return t=e.displayName||null,t!==null?t:Zl(e.type)||"Memo";case an:t=e._payload,e=e._init;try{return Zl(e(t))}catch{}}return null}function dv(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Zl(t);case 8:return t===fu?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Xf(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fv(e){var t=Xf(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(s){r=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ki(e){e._valueTracker||(e._valueTracker=fv(e))}function Zf(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Xf(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ls(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Jl(e,t){var n=t.checked;return ce({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Mc(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=jn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Jf(e,t){t=t.checked,t!=null&&du(e,"checked",t,!1)}function ea(e,t){Jf(e,t);var n=jn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?ta(e,t.type,n):t.hasOwnProperty("defaultValue")&&ta(e,t.type,jn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function _c(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function ta(e,t,n){(t!=="number"||ls(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Po=Array.isArray;function Or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o"+t.valueOf().toString()+"",t=Pi.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function $o(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ro={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pv=["Webkit","ms","Moz","O"];Object.keys(Ro).forEach(function(e){pv.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ro[t]=Ro[e]})});function rp(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ro.hasOwnProperty(e)&&Ro[e]?(""+t).trim():t+"px"}function op(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=rp(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var mv=ce({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function oa(e,t){if(t){if(mv[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(j(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(j(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(j(61))}if(t.style!=null&&typeof t.style!="object")throw Error(j(62))}}function ia(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var sa=null;function hu(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var la=null,Mr=null,_r=null;function Fc(e){if(e=mi(e)){if(typeof la!="function")throw Error(j(280));var t=e.stateNode;t&&(t=Ws(t),la(e.stateNode,e.type,t))}}function ip(e){Mr?_r?_r.push(e):_r=[e]:Mr=e}function sp(){if(Mr){var e=Mr,t=_r;if(_r=Mr=null,Fc(e),t)for(e=0;e>>=0,e===0?32:31-(kv(e)/Pv|0)|0}var Ti=64,Ni=4194304;function To(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ds(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,s=n&268435455;if(s!==0){var l=s&~o;l!==0?r=To(l):(i&=s,i!==0&&(r=To(i)))}else s=n&~o,s!==0?r=To(s):i!==0&&(r=To(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function fi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yt(t),e[t]=n}function jv(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ao),Qc=" ",Kc=!1;function Pp(e,t){switch(e){case"keyup":return oy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Tp(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Er=!1;function sy(e,t){switch(e){case"compositionend":return Tp(t);case"keypress":return t.which!==32?null:(Kc=!0,Qc);case"textInput":return e=t.data,e===Qc&&Kc?null:e;default:return null}}function ly(e,t){if(Er)return e==="compositionend"||!Cu&&Pp(e,t)?(e=bp(),Gi=wu=yn=null,Er=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Xc(n)}}function Ap(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ap(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Op(){for(var e=window,t=ls();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=ls(e.document)}return t}function bu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function gy(e){var t=Op(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ap(n.ownerDocument.documentElement,n)){if(r!==null&&bu(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=Zc(n,i);var s=Zc(n,r);o&&s&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cr=null,pa=null,Mo=null,ma=!1;function Jc(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ma||Cr==null||Cr!==ls(r)||(r=Cr,"selectionStart"in r&&bu(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mo&&Qo(Mo,r)||(Mo=r,r=ms(pa,"onSelect"),0Pr||(e.current=wa[Pr],wa[Pr]=null,Pr--)}function ne(e,t){Pr++,wa[Pr]=e.current,e.current=t}var An={},Oe=Fn(An),Be=Fn(!1),rr=An;function qr(e,t){var n=e.type.contextTypes;if(!n)return An;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function We(e){return e=e.childContextTypes,e!=null}function gs(){ie(Be),ie(Oe)}function sd(e,t,n){if(Oe.current!==An)throw Error(j(168));ne(Oe,t),ne(Be,n)}function Bp(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var o in r)if(!(o in t))throw Error(j(108,dv(e)||"Unknown",o));return ce({},n,r)}function vs(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||An,rr=Oe.current,ne(Oe,e),ne(Be,Be.current),!0}function ld(e,t,n){var r=e.stateNode;if(!r)throw Error(j(169));n?(e=Bp(e,t,rr),r.__reactInternalMemoizedMergedChildContext=e,ie(Be),ie(Oe),ne(Oe,e)):ie(Be),ne(Be,n)}var Dt=null,Us=!1,Al=!1;function Wp(e){Dt===null?Dt=[e]:Dt.push(e)}function Ny(e){Us=!0,Wp(e)}function zn(){if(!Al&&Dt!==null){Al=!0;var e=0,t=ee;try{var n=Dt;for(ee=1;e>=s,o-=s,Bt=1<<32-yt(t)+o|n<N?(_=k,k=null):_=k.sibling;var O=g(h,k,v[N],S);if(O===null){k===null&&(k=_);break}e&&k&&O.alternate===null&&t(h,k),m=i(O,m,N),b===null?C=O:b.sibling=O,b=O,k=_}if(N===v.length)return n(h,k),le&&Hn(h,N),C;if(k===null){for(;NN?(_=k,k=null):_=k.sibling;var $=g(h,k,O.value,S);if($===null){k===null&&(k=_);break}e&&k&&$.alternate===null&&t(h,k),m=i($,m,N),b===null?C=$:b.sibling=$,b=$,k=_}if(O.done)return n(h,k),le&&Hn(h,N),C;if(k===null){for(;!O.done;N++,O=v.next())O=p(h,O.value,S),O!==null&&(m=i(O,m,N),b===null?C=O:b.sibling=O,b=O);return le&&Hn(h,N),C}for(k=r(h,k);!O.done;N++,O=v.next())O=d(k,h,N,O.value,S),O!==null&&(e&&O.alternate!==null&&k.delete(O.key===null?N:O.key),m=i(O,m,N),b===null?C=O:b.sibling=O,b=O);return e&&k.forEach(function(F){return t(h,F)}),le&&Hn(h,N),C}function w(h,m,v,S){if(typeof v=="object"&&v!==null&&v.type===Sr&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case bi:e:{for(var C=v.key,b=m;b!==null;){if(b.key===C){if(C=v.type,C===Sr){if(b.tag===7){n(h,b.sibling),m=o(b,v.props.children),m.return=h,h=m;break e}}else if(b.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===an&&cd(C)===b.type){n(h,b.sibling),m=o(b,v.props),m.ref=wo(h,b,v),m.return=h,h=m;break e}n(h,b);break}else t(h,b);b=b.sibling}v.type===Sr?(m=nr(v.props.children,h.mode,S,v.key),m.return=h,h=m):(S=ns(v.type,v.key,v.props,null,h.mode,S),S.ref=wo(h,m,v),S.return=h,h=S)}return s(h);case wr:e:{for(b=v.key;m!==null;){if(m.key===b)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(h,m.sibling),m=o(m,v.children||[]),m.return=h,h=m;break e}else{n(h,m);break}else t(h,m);m=m.sibling}m=Dl(v,h.mode,S),m.return=h,h=m}return s(h);case an:return b=v._init,w(h,m,b(v._payload),S)}if(Po(v))return E(h,m,v,S);if(ho(v))return y(h,m,v,S);Ii(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(h,m.sibling),m=o(m,v),m.return=h,h=m):(n(h,m),m=zl(v,h.mode,S),m.return=h,h=m),s(h)):n(h,m)}return w}var Zr=Qp(!0),Kp=Qp(!1),ws=Fn(null),Ss=null,Rr=null,Nu=null;function Ru(){Nu=Rr=Ss=null}function ju(e){var t=ws.current;ie(ws),e._currentValue=t}function Ca(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Lr(e,t){Ss=e,Nu=Rr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&($e=!0),e.firstContext=null)}function st(e){var t=e._currentValue;if(Nu!==e)if(e={context:e,memoizedValue:t,next:null},Rr===null){if(Ss===null)throw Error(j(308));Rr=e,Ss.dependencies={lanes:0,firstContext:e}}else Rr=Rr.next=e;return t}var Kn=null;function Au(e){Kn===null?Kn=[e]:Kn.push(e)}function Gp(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Au(t)):(n.next=o.next,o.next=n),t.interleaved=n,Qt(e,r)}function Qt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var un=!1;function Ou(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Yp(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Ut(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function kn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Z&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Qt(e,n)}return o=r.interleaved,o===null?(t.next=t,Au(r)):(t.next=o.next,o.next=t),r.interleaved=t,Qt(e,n)}function qi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vu(e,n)}}function dd(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Es(e,t,n,r){var o=e.updateQueue;un=!1;var i=o.firstBaseUpdate,s=o.lastBaseUpdate,l=o.shared.pending;if(l!==null){o.shared.pending=null;var a=l,u=a.next;a.next=null,s===null?i=u:s.next=u,s=a;var c=e.alternate;c!==null&&(c=c.updateQueue,l=c.lastBaseUpdate,l!==s&&(l===null?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=a))}if(i!==null){var p=o.baseState;s=0,c=u=a=null,l=i;do{var g=l.lane,d=l.eventTime;if((r&g)===g){c!==null&&(c=c.next={eventTime:d,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var E=e,y=l;switch(g=t,d=n,y.tag){case 1:if(E=y.payload,typeof E=="function"){p=E.call(d,p,g);break e}p=E;break e;case 3:E.flags=E.flags&-65537|128;case 0:if(E=y.payload,g=typeof E=="function"?E.call(d,p,g):E,g==null)break e;p=ce({},p,g);break e;case 2:un=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,g=o.effects,g===null?o.effects=[l]:g.push(l))}else d={eventTime:d,lane:g,tag:l.tag,payload:l.payload,callback:l.callback,next:null},c===null?(u=c=d,a=p):c=c.next=d,s|=g;if(l=l.next,l===null){if(l=o.shared.pending,l===null)break;g=l,l=g.next,g.next=null,o.lastBaseUpdate=g,o.shared.pending=null}}while(!0);if(c===null&&(a=p),o.baseState=a,o.firstBaseUpdate=u,o.lastBaseUpdate=c,t=o.shared.interleaved,t!==null){o=t;do s|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);sr|=s,e.lanes=s,e.memoizedState=p}}function fd(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Ml.transition;Ml.transition={};try{e(!1),t()}finally{ee=n,Ml.transition=r}}function fm(){return lt().memoizedState}function Oy(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},pm(e))mm(t,n);else if(n=Gp(e,t,n,r),n!==null){var o=Ie();xt(n,e,r,o),hm(n,t,r)}}function My(e,t,n){var r=Tn(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(pm(e))mm(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,l=i(s,n);if(o.hasEagerState=!0,o.eagerState=l,wt(l,s)){var a=t.interleaved;a===null?(o.next=o,Au(t)):(o.next=a.next,a.next=o),t.interleaved=o;return}}catch{}finally{}n=Gp(e,t,o,r),n!==null&&(o=Ie(),xt(n,e,r,o),hm(n,t,r))}}function pm(e){var t=e.alternate;return e===ue||t!==null&&t===ue}function mm(e,t){_o=bs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hm(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vu(e,n)}}var ks={readContext:st,useCallback:Ne,useContext:Ne,useEffect:Ne,useImperativeHandle:Ne,useInsertionEffect:Ne,useLayoutEffect:Ne,useMemo:Ne,useReducer:Ne,useRef:Ne,useState:Ne,useDebugValue:Ne,useDeferredValue:Ne,useTransition:Ne,useMutableSource:Ne,useSyncExternalStore:Ne,useId:Ne,unstable_isNewReconciler:!1},_y={readContext:st,useCallback:function(e,t){return kt().memoizedState=[e,t===void 0?null:t],e},useContext:st,useEffect:md,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Zi(4194308,4,lm.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Zi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Zi(4,2,e,t)},useMemo:function(e,t){var n=kt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=kt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Oy.bind(null,ue,e),[r.memoizedState,e]},useRef:function(e){var t=kt();return e={current:e},t.memoizedState=e},useState:pd,useDebugValue:$u,useDeferredValue:function(e){return kt().memoizedState=e},useTransition:function(){var e=pd(!1),t=e[0];return e=Ay.bind(null,e[1]),kt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ue,o=kt();if(le){if(n===void 0)throw Error(j(407));n=n()}else{if(n=t(),Ee===null)throw Error(j(349));ir&30||Jp(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,md(tm.bind(null,r,i,e),[e]),r.flags|=2048,ei(9,em.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=kt(),t=Ee.identifierPrefix;if(le){var n=Wt,r=Bt;n=(r&~(1<<32-yt(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Zo++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Rt]=t,e[Yo]=r,km(e,t,!1,!1),t.stateNode=e;e:{switch(s=ia(n,r),n){case"dialog":oe("cancel",e),oe("close",e),o=r;break;case"iframe":case"object":case"embed":oe("load",e),o=r;break;case"video":case"audio":for(o=0;oto&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304)}else{if(!r)if(e=Cs(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),So(i,!0),i.tail===null&&i.tailMode==="hidden"&&!s.alternate&&!le)return Re(t),null}else 2*pe()-i.renderingStartTime>to&&n!==1073741824&&(t.flags|=128,r=!0,So(i,!1),t.lanes=4194304);i.isBackwards?(s.sibling=t.child,t.child=s):(n=i.last,n!==null?n.sibling=s:t.child=s,i.last=s)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=pe(),t.sibling=null,n=ae.current,ne(ae,r?n&1|2:n&1),t):(Re(t),null);case 22:case 23:return Qu(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ve&1073741824&&(Re(t),t.subtreeFlags&6&&(t.flags|=8192)):Re(t),null;case 24:return null;case 25:return null}throw Error(j(156,t.tag))}function Wy(e,t){switch(Pu(t),t.tag){case 1:return We(t.type)&&gs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Jr(),ie(Be),ie(Oe),Iu(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _u(t),null;case 13:if(ie(ae),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(j(340));Xr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ae),null;case 4:return Jr(),null;case 10:return ju(t.type._context),null;case 22:case 23:return Qu(),null;case 24:return null;default:return null}}var Fi=!1,Ae=!1,Uy=typeof WeakSet=="function"?WeakSet:Set,L=null;function jr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function Oa(e,t,n){try{n()}catch(r){fe(e,t,r)}}var kd=!1;function Hy(e,t){if(ha=fs,e=Op(),bu(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,l=-1,a=-1,u=0,c=0,p=e,g=null;t:for(;;){for(var d;p!==n||o!==0&&p.nodeType!==3||(l=s+o),p!==i||r!==0&&p.nodeType!==3||(a=s+r),p.nodeType===3&&(s+=p.nodeValue.length),(d=p.firstChild)!==null;)g=p,p=d;for(;;){if(p===e)break t;if(g===n&&++u===o&&(l=s),g===i&&++c===r&&(a=s),(d=p.nextSibling)!==null)break;p=g,g=p.parentNode}p=d}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(ga={focusedElem:e,selectionRange:n},fs=!1,L=t;L!==null;)if(t=L,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,L=e;else for(;L!==null;){t=L;try{var E=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(E!==null){var y=E.memoizedProps,w=E.memoizedState,h=t.stateNode,m=h.getSnapshotBeforeUpdate(t.elementType===t.type?y:pt(t.type,y),w);h.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(j(163))}}catch(S){fe(t,t.return,S)}if(e=t.sibling,e!==null){e.return=t.return,L=e;break}L=t.return}return E=kd,kd=!1,E}function Io(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,i!==void 0&&Oa(t,n,i)}o=o.next}while(o!==r)}}function Qs(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ma(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Nm(e){var t=e.alternate;t!==null&&(e.alternate=null,Nm(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Rt],delete t[Yo],delete t[xa],delete t[Py],delete t[Ty])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Rm(e){return e.tag===5||e.tag===3||e.tag===4}function Pd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Rm(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _a(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=hs));else if(r!==4&&(e=e.child,e!==null))for(_a(e,t,n),e=e.sibling;e!==null;)_a(e,t,n),e=e.sibling}function Ia(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ia(e,t,n),e=e.sibling;e!==null;)Ia(e,t,n),e=e.sibling}var be=null,gt=!1;function rn(e,t,n){for(n=n.child;n!==null;)jm(e,t,n),n=n.sibling}function jm(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(zs,n)}catch{}switch(n.tag){case 5:Ae||jr(n,t);case 6:var r=be,o=gt;be=null,rn(e,t,n),be=r,gt=o,be!==null&&(gt?(e=be,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):be.removeChild(n.stateNode));break;case 18:be!==null&&(gt?(e=be,n=n.stateNode,e.nodeType===8?jl(e.parentNode,n):e.nodeType===1&&jl(e,n),Ho(e)):jl(be,n.stateNode));break;case 4:r=be,o=gt,be=n.stateNode.containerInfo,gt=!0,rn(e,t,n),be=r,gt=o;break;case 0:case 11:case 14:case 15:if(!Ae&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,s=i.destroy;i=i.tag,s!==void 0&&(i&2||i&4)&&Oa(n,t,s),o=o.next}while(o!==r)}rn(e,t,n);break;case 1:if(!Ae&&(jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){fe(n,t,l)}rn(e,t,n);break;case 21:rn(e,t,n);break;case 22:n.mode&1?(Ae=(r=Ae)||n.memoizedState!==null,rn(e,t,n),Ae=r):rn(e,t,n);break;default:rn(e,t,n)}}function Td(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Uy),t.forEach(function(r){var o=Jy.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function dt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ro&&(o=s),r&=~i}if(r=o,r=pe()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Qy(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Ns=0,Z&6)throw Error(j(331));var o=Z;for(Z|=4,L=e.current;L!==null;){var i=L,s=i.child;if(L.flags&16){var l=i.deletions;if(l!==null){for(var a=0;ape()-Hu?tr(e,0):Uu|=n),Ue(e,t)}function zm(e,t){t===0&&(e.mode&1?(t=Ni,Ni<<=1,!(Ni&130023424)&&(Ni=4194304)):t=1);var n=Ie();e=Qt(e,t),e!==null&&(fi(e,t,n),Ue(e,n))}function Zy(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),zm(e,n)}function Jy(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;o!==null&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(j(314))}r!==null&&r.delete(t),zm(e,n)}var Dm;Dm=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Be.current)$e=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return $e=!1,$y(e,t,n);$e=!!(e.flags&131072)}else $e=!1,le&&t.flags&1048576&&Up(t,xs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Ji(e,t),e=t.pendingProps;var o=qr(t,Oe.current);Lr(t,n),o=Fu(null,t,r,e,o,n);var i=zu();return t.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,We(r)?(i=!0,vs(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Ou(t),o.updater=Vs,t.stateNode=o,o._reactInternals=t,ka(t,r,e,n),t=Na(null,t,r,!0,i,n)):(t.tag=0,le&&i&&ku(t),Me(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Ji(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=t0(r),e=pt(r,e),o){case 0:t=Ta(null,t,r,e,n);break e;case 1:t=Ed(null,t,r,e,n);break e;case 11:t=wd(null,t,r,e,n);break e;case 14:t=Sd(null,t,r,pt(r.type,e),n);break e}throw Error(j(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ta(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ed(e,t,r,o,n);case 3:e:{if(Em(t),e===null)throw Error(j(387));r=t.pendingProps,i=t.memoizedState,o=i.element,Yp(e,t),Es(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=eo(Error(j(423)),t),t=Cd(e,t,r,n,o);break e}else if(r!==o){o=eo(Error(j(424)),t),t=Cd(e,t,r,n,o);break e}else for(Ge=bn(t.stateNode.containerInfo.firstChild),Ye=t,le=!0,vt=null,n=Kp(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Xr(),r===o){t=Kt(e,t,n);break e}Me(e,t,r,n)}t=t.child}return t;case 5:return qp(t),e===null&&Ea(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,s=o.children,va(r,o)?s=null:i!==null&&va(r,i)&&(t.flags|=32),Sm(e,t),Me(e,t,s,n),t.child;case 6:return e===null&&Ea(t),null;case 13:return Cm(e,t,n);case 4:return Mu(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Zr(t,null,r,n):Me(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),wd(e,t,r,o,n);case 7:return Me(e,t,t.pendingProps,n),t.child;case 8:return Me(e,t,t.pendingProps.children,n),t.child;case 12:return Me(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,s=o.value,ne(ws,r._currentValue),r._currentValue=s,i!==null)if(wt(i.value,s)){if(i.children===o.children&&!Be.current){t=Kt(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var l=i.dependencies;if(l!==null){s=i.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(i.tag===1){a=Ut(-1,n&-n),a.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}i.lanes|=n,a=i.alternate,a!==null&&(a.lanes|=n),Ca(i.return,n,t),l.lanes|=n;break}a=a.next}}else if(i.tag===10)s=i.type===t.type?null:i.child;else if(i.tag===18){if(s=i.return,s===null)throw Error(j(341));s.lanes|=n,l=s.alternate,l!==null&&(l.lanes|=n),Ca(s,n,t),s=i.sibling}else s=i.child;if(s!==null)s.return=i;else for(s=i;s!==null;){if(s===t){s=null;break}if(i=s.sibling,i!==null){i.return=s.return,s=i;break}s=s.return}i=s}Me(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Lr(t,n),o=st(o),r=r(o),t.flags|=1,Me(e,t,r,n),t.child;case 14:return r=t.type,o=pt(r,t.pendingProps),o=pt(r.type,o),Sd(e,t,r,o,n);case 15:return xm(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:pt(r,o),Ji(e,t),t.tag=1,We(r)?(e=!0,vs(t)):e=!1,Lr(t,n),gm(t,r,o),ka(t,r,o,n),Na(null,t,r,!0,e,n);case 19:return bm(e,t,n);case 22:return wm(e,t,n)}throw Error(j(156,t.tag))};function $m(e,t){return pp(e,t)}function e0(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ot(e,t,n,r){return new e0(e,t,n,r)}function Gu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function t0(e){if(typeof e=="function")return Gu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===pu)return 11;if(e===mu)return 14}return 2}function Nn(e,t){var n=e.alternate;return n===null?(n=ot(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ns(e,t,n,r,o,i){var s=2;if(r=e,typeof e=="function")Gu(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Sr:return nr(n.children,o,i,t);case fu:s=8,o|=8;break;case Yl:return e=ot(12,n,t,o|2),e.elementType=Yl,e.lanes=i,e;case ql:return e=ot(13,n,t,o),e.elementType=ql,e.lanes=i,e;case Xl:return e=ot(19,n,t,o),e.elementType=Xl,e.lanes=i,e;case qf:return Gs(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Gf:s=10;break e;case Yf:s=9;break e;case pu:s=11;break e;case mu:s=14;break e;case an:s=16,r=null;break e}throw Error(j(130,e==null?e:typeof e,""))}return t=ot(s,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function nr(e,t,n,r){return e=ot(7,e,r,t),e.lanes=n,e}function Gs(e,t,n,r){return e=ot(22,e,r,t),e.elementType=qf,e.lanes=n,e.stateNode={isHidden:!1},e}function zl(e,t,n){return e=ot(6,e,null,t),e.lanes=n,e}function Dl(e,t,n){return t=ot(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function n0(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=xl(0),this.expirationTimes=xl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=xl(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Yu(e,t,n,r,o,i,s,l,a){return e=new n0(e,t,n,l,a),t===1?(t=1,i===!0&&(t|=8)):t=0,i=ot(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ou(i),e}function r0(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hm)}catch(e){console.error(e)}}Hm(),Hf.exports=Ze;var gi=Hf.exports;const Vm=Af(gi);var Qm,Id=gi;Qm=Id.createRoot,Id.hydrateRoot;const a0=1,u0=1e6;let $l=0;function c0(){return $l=($l+1)%Number.MAX_SAFE_INTEGER,$l.toString()}const Bl=new Map,Ld=e=>{if(Bl.has(e))return;const t=setTimeout(()=>{Bl.delete(e),zo({type:"REMOVE_TOAST",toastId:e})},u0);Bl.set(e,t)},d0=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,a0)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(n=>n.id===t.toast.id?{...n,...t.toast}:n)};case"DISMISS_TOAST":{const{toastId:n}=t;return n?Ld(n):e.toasts.forEach(r=>{Ld(r.id)}),{...e,toasts:e.toasts.map(r=>r.id===n||n===void 0?{...r,open:!1}:r)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(n=>n.id!==t.toastId)}}},rs=[];let os={toasts:[]};function zo(e){os=d0(os,e),rs.forEach(t=>{t(os)})}function f0({...e}){const t=c0(),n=o=>zo({type:"UPDATE_TOAST",toast:{...o,id:t}}),r=()=>zo({type:"DISMISS_TOAST",toastId:t});return zo({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:o=>{o||r()}}}),{id:t,dismiss:r,update:n}}function p0(){const[e,t]=x.useState(os);return x.useEffect(()=>(rs.push(t),()=>{const n=rs.indexOf(t);n>-1&&rs.splice(n,1)}),[e]),{...e,toast:f0,dismiss:n=>zo({type:"DISMISS_TOAST",toastId:n})}}function ye(e,t,{checkForDefaultPrevented:n=!0}={}){return function(o){if(e==null||e(o),n===!1||!o.defaultPrevented)return t==null?void 0:t(o)}}function Fd(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Km(...e){return t=>{let n=!1;const r=e.map(o=>{const i=Fd(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o{var h;const{scope:g,children:d,...E}=p,y=((h=g==null?void 0:g[e])==null?void 0:h[a])||l,w=x.useMemo(()=>E,Object.values(E));return f.jsx(y.Provider,{value:w,children:d})};u.displayName=i+"Provider";function c(p,g){var y;const d=((y=g==null?void 0:g[e])==null?void 0:y[a])||l,E=x.useContext(d);if(E)return E;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${i}\``)}return[u,c]}const o=()=>{const i=n.map(s=>x.createContext(s));return function(l){const a=(l==null?void 0:l[e])||i;return x.useMemo(()=>({[`__scope${e}`]:{...l,[e]:a}}),[l,a])}};return o.scopeName=e,[r,m0(o,...t)]}function m0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(i){const s=r.reduce((l,{useScope:a,scopeName:u})=>{const p=a(i)[`__scope${u}`];return{...l,...p}},{});return x.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function $a(e){const t=h0(e),n=x.forwardRef((r,o)=>{const{children:i,...s}=r,l=x.Children.toArray(i),a=l.find(v0);if(a){const u=a.props.children,c=l.map(p=>p===a?x.Children.count(u)>1?x.Children.only(null):x.isValidElement(u)?u.props.children:null:p);return f.jsx(t,{...s,ref:o,children:x.isValidElement(u)?x.cloneElement(u,void 0,c):null})}return f.jsx(t,{...s,ref:o,children:i})});return n.displayName=`${e}.Slot`,n}function h0(e){const t=x.forwardRef((n,r)=>{const{children:o,...i}=n;if(x.isValidElement(o)){const s=x0(o),l=y0(i,o.props);return o.type!==x.Fragment&&(l.ref=r?Km(r,s):s),x.cloneElement(o,l)}return x.Children.count(o)>1?x.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Gm=Symbol("radix.slottable");function g0(e){const t=({children:n})=>f.jsx(f.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=Gm,t}function v0(e){return x.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Gm}function y0(e,t){const n={...t};for(const r in t){const o=e[r],i=t[r];/^on[A-Z]/.test(r)?o&&i?n[r]=(...l)=>{const a=i(...l);return o(...l),a}:o&&(n[r]=o):r==="style"?n[r]={...o,...i}:r==="className"&&(n[r]=[o,i].filter(Boolean).join(" "))}return{...e,...n}}function x0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}function w0(e){const t=e+"CollectionProvider",[n,r]=Js(t),[o,i]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=y=>{const{scope:w,children:h}=y,m=A.useRef(null),v=A.useRef(new Map).current;return f.jsx(o,{scope:w,itemMap:v,collectionRef:m,children:h})};s.displayName=t;const l=e+"CollectionSlot",a=$a(l),u=A.forwardRef((y,w)=>{const{scope:h,children:m}=y,v=i(l,h),S=St(w,v.collectionRef);return f.jsx(a,{ref:S,children:m})});u.displayName=l;const c=e+"CollectionItemSlot",p="data-radix-collection-item",g=$a(c),d=A.forwardRef((y,w)=>{const{scope:h,children:m,...v}=y,S=A.useRef(null),C=St(w,S),b=i(c,h);return A.useEffect(()=>(b.itemMap.set(S,{ref:S,...v}),()=>void b.itemMap.delete(S))),f.jsx(g,{[p]:"",ref:C,children:m})});d.displayName=c;function E(y){const w=i(e+"CollectionConsumer",y);return A.useCallback(()=>{const m=w.collectionRef.current;if(!m)return[];const v=Array.from(m.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((b,k)=>v.indexOf(b.ref.current)-v.indexOf(k.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:s,Slot:u,ItemSlot:d},E,r]}var S0=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],He=S0.reduce((e,t)=>{const n=$a(`Primitive.${t}`),r=x.forwardRef((o,i)=>{const{asChild:s,...l}=o,a=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),f.jsx(a,{...l,ref:i})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function Ym(e,t){e&&gi.flushSync(()=>e.dispatchEvent(t))}function On(e){const t=x.useRef(e);return x.useEffect(()=>{t.current=e}),x.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}function E0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e);x.useEffect(()=>{const r=o=>{o.key==="Escape"&&n(o)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var C0="DismissableLayer",Ba="dismissableLayer.update",b0="dismissableLayer.pointerDownOutside",k0="dismissableLayer.focusOutside",zd,qm=x.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Ju=x.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...a}=e,u=x.useContext(qm),[c,p]=x.useState(null),g=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=x.useState({}),E=St(t,k=>p(k)),y=Array.from(u.layers),[w]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),h=y.indexOf(w),m=c?y.indexOf(c):-1,v=u.layersWithOutsidePointerEventsDisabled.size>0,S=m>=h,C=T0(k=>{const N=k.target,_=[...u.branches].some(O=>O.contains(N));!S||_||(o==null||o(k),s==null||s(k),k.defaultPrevented||l==null||l())},g),b=N0(k=>{const N=k.target;[...u.branches].some(O=>O.contains(N))||(i==null||i(k),s==null||s(k),k.defaultPrevented||l==null||l())},g);return E0(k=>{m===u.layers.size-1&&(r==null||r(k),!k.defaultPrevented&&l&&(k.preventDefault(),l()))},g),x.useEffect(()=>{if(c)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(zd=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),u.layersWithOutsidePointerEventsDisabled.add(c)),u.layers.add(c),Dd(),()=>{n&&u.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=zd)}},[c,g,n,u]),x.useEffect(()=>()=>{c&&(u.layers.delete(c),u.layersWithOutsidePointerEventsDisabled.delete(c),Dd())},[c,u]),x.useEffect(()=>{const k=()=>d({});return document.addEventListener(Ba,k),()=>document.removeEventListener(Ba,k)},[]),f.jsx(He.div,{...a,ref:E,style:{pointerEvents:v?S?"auto":"none":void 0,...e.style},onFocusCapture:ye(e.onFocusCapture,b.onFocusCapture),onBlurCapture:ye(e.onBlurCapture,b.onBlurCapture),onPointerDownCapture:ye(e.onPointerDownCapture,C.onPointerDownCapture)})});Ju.displayName=C0;var P0="DismissableLayerBranch",Xm=x.forwardRef((e,t)=>{const n=x.useContext(qm),r=x.useRef(null),o=St(t,r);return x.useEffect(()=>{const i=r.current;if(i)return n.branches.add(i),()=>{n.branches.delete(i)}},[n.branches]),f.jsx(He.div,{...e,ref:o})});Xm.displayName=P0;function T0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1),o=x.useRef(()=>{});return x.useEffect(()=>{const i=l=>{if(l.target&&!r.current){let a=function(){Zm(b0,n,u,{discrete:!0})};const u={originalEvent:l};l.pointerType==="touch"?(t.removeEventListener("click",o.current),o.current=a,t.addEventListener("click",o.current,{once:!0})):a()}else t.removeEventListener("click",o.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",i),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function N0(e,t=globalThis==null?void 0:globalThis.document){const n=On(e),r=x.useRef(!1);return x.useEffect(()=>{const o=i=>{i.target&&!r.current&&Zm(k0,n,{originalEvent:i},{discrete:!1})};return t.addEventListener("focusin",o),()=>t.removeEventListener("focusin",o)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Dd(){const e=new CustomEvent(Ba);document.dispatchEvent(e)}function Zm(e,t,n,{discrete:r}){const o=n.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,i):o.dispatchEvent(i)}var R0=Ju,j0=Xm,Mn=globalThis!=null&&globalThis.document?x.useLayoutEffect:()=>{},A0="Portal",Jm=x.forwardRef((e,t)=>{var l;const{container:n,...r}=e,[o,i]=x.useState(!1);Mn(()=>i(!0),[]);const s=n||o&&((l=globalThis==null?void 0:globalThis.document)==null?void 0:l.body);return s?Vm.createPortal(f.jsx(He.div,{...r,ref:t}),s):null});Jm.displayName=A0;function O0(e,t){return x.useReducer((n,r)=>t[n][r]??n,e)}var ec=e=>{const{present:t,children:n}=e,r=M0(t),o=typeof n=="function"?n({present:r.isPresent}):x.Children.only(n),i=St(r.ref,_0(o));return typeof n=="function"||r.isPresent?x.cloneElement(o,{ref:i}):null};ec.displayName="Presence";function M0(e){const[t,n]=x.useState(),r=x.useRef(null),o=x.useRef(e),i=x.useRef("none"),s=e?"mounted":"unmounted",[l,a]=O0(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return x.useEffect(()=>{const u=$i(r.current);i.current=l==="mounted"?u:"none"},[l]),Mn(()=>{const u=r.current,c=o.current;if(c!==e){const g=i.current,d=$i(u);e?a("MOUNT"):d==="none"||(u==null?void 0:u.display)==="none"?a("UNMOUNT"):a(c&&g!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=e}},[e,a]),Mn(()=>{if(t){let u;const c=t.ownerDocument.defaultView??window,p=d=>{const y=$i(r.current).includes(d.animationName);if(d.target===t&&y&&(a("ANIMATION_END"),!o.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",u=c.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=d=>{d.target===t&&(i.current=$i(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{c.clearTimeout(u),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else a("ANIMATION_END")},[t,a]),{isPresent:["mounted","unmountSuspended"].includes(l),ref:x.useCallback(u=>{r.current=u?getComputedStyle(u):null,n(u)},[])}}function $i(e){return(e==null?void 0:e.animationName)||"none"}function _0(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var I0=Wf[" useInsertionEffect ".trim().toString()]||Mn;function L0({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,i,s]=F0({defaultProp:t,onChange:n}),l=e!==void 0,a=l?e:o;{const c=x.useRef(e!==void 0);x.useEffect(()=>{const p=c.current;p!==l&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),c.current=l},[l,r])}const u=x.useCallback(c=>{var p;if(l){const g=z0(c)?c(e):c;g!==e&&((p=s.current)==null||p.call(s,g))}else i(c)},[l,e,i,s]);return[a,u]}function F0({defaultProp:e,onChange:t}){const[n,r]=x.useState(e),o=x.useRef(n),i=x.useRef(t);return I0(()=>{i.current=t},[t]),x.useEffect(()=>{var s;o.current!==n&&((s=i.current)==null||s.call(i,n),o.current=n)},[n,o]),[n,r,i]}function z0(e){return typeof e=="function"}var D0=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),$0="VisuallyHidden",el=x.forwardRef((e,t)=>f.jsx(He.span,{...e,ref:t,style:{...D0,...e.style}}));el.displayName=$0;var B0=el,tc="ToastProvider",[nc,W0,U0]=w0("Toast"),[eh,pC]=Js("Toast",[U0]),[H0,tl]=eh(tc),th=e=>{const{__scopeToast:t,label:n="Notification",duration:r=5e3,swipeDirection:o="right",swipeThreshold:i=50,children:s}=e,[l,a]=x.useState(null),[u,c]=x.useState(0),p=x.useRef(!1),g=x.useRef(!1);return n.trim()||console.error(`Invalid prop \`label\` supplied to \`${tc}\`. Expected non-empty \`string\`.`),f.jsx(nc.Provider,{scope:t,children:f.jsx(H0,{scope:t,label:n,duration:r,swipeDirection:o,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:a,onToastAdd:x.useCallback(()=>c(d=>d+1),[]),onToastRemove:x.useCallback(()=>c(d=>d-1),[]),isFocusedToastEscapeKeyDownRef:p,isClosePausedRef:g,children:s})})};th.displayName=tc;var nh="ToastViewport",V0=["F8"],Wa="toast.viewportPause",Ua="toast.viewportResume",rh=x.forwardRef((e,t)=>{const{__scopeToast:n,hotkey:r=V0,label:o="Notifications ({hotkey})",...i}=e,s=tl(nh,n),l=W0(n),a=x.useRef(null),u=x.useRef(null),c=x.useRef(null),p=x.useRef(null),g=St(t,p,s.onViewportChange),d=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),E=s.toastCount>0;x.useEffect(()=>{const w=h=>{var v;r.length!==0&&r.every(S=>h[S]||h.code===S)&&((v=p.current)==null||v.focus())};return document.addEventListener("keydown",w),()=>document.removeEventListener("keydown",w)},[r]),x.useEffect(()=>{const w=a.current,h=p.current;if(E&&w&&h){const m=()=>{if(!s.isClosePausedRef.current){const b=new CustomEvent(Wa);h.dispatchEvent(b),s.isClosePausedRef.current=!0}},v=()=>{if(s.isClosePausedRef.current){const b=new CustomEvent(Ua);h.dispatchEvent(b),s.isClosePausedRef.current=!1}},S=b=>{!w.contains(b.relatedTarget)&&v()},C=()=>{w.contains(document.activeElement)||v()};return w.addEventListener("focusin",m),w.addEventListener("focusout",S),w.addEventListener("pointermove",m),w.addEventListener("pointerleave",C),window.addEventListener("blur",m),window.addEventListener("focus",v),()=>{w.removeEventListener("focusin",m),w.removeEventListener("focusout",S),w.removeEventListener("pointermove",m),w.removeEventListener("pointerleave",C),window.removeEventListener("blur",m),window.removeEventListener("focus",v)}}},[E,s.isClosePausedRef]);const y=x.useCallback(({tabbingDirection:w})=>{const m=l().map(v=>{const S=v.ref.current,C=[S,...ox(S)];return w==="forwards"?C:C.reverse()});return(w==="forwards"?m.reverse():m).flat()},[l]);return x.useEffect(()=>{const w=p.current;if(w){const h=m=>{var C,b,k;const v=m.altKey||m.ctrlKey||m.metaKey;if(m.key==="Tab"&&!v){const N=document.activeElement,_=m.shiftKey;if(m.target===w&&_){(C=u.current)==null||C.focus();return}const F=y({tabbingDirection:_?"backwards":"forwards"}),Q=F.findIndex(M=>M===N);Wl(F.slice(Q+1))?m.preventDefault():_?(b=u.current)==null||b.focus():(k=c.current)==null||k.focus()}};return w.addEventListener("keydown",h),()=>w.removeEventListener("keydown",h)}},[l,y]),f.jsxs(j0,{ref:a,role:"region","aria-label":o.replace("{hotkey}",d),tabIndex:-1,style:{pointerEvents:E?void 0:"none"},children:[E&&f.jsx(Ha,{ref:u,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"forwards"});Wl(w)}}),f.jsx(nc.Slot,{scope:n,children:f.jsx(He.ol,{tabIndex:-1,...i,ref:g})}),E&&f.jsx(Ha,{ref:c,onFocusFromOutsideViewport:()=>{const w=y({tabbingDirection:"backwards"});Wl(w)}})]})});rh.displayName=nh;var oh="ToastFocusProxy",Ha=x.forwardRef((e,t)=>{const{__scopeToast:n,onFocusFromOutsideViewport:r,...o}=e,i=tl(oh,n);return f.jsx(el,{"aria-hidden":!0,tabIndex:0,...o,ref:t,style:{position:"fixed"},onFocus:s=>{var u;const l=s.relatedTarget;!((u=i.viewport)!=null&&u.contains(l))&&r()}})});Ha.displayName=oh;var vi="Toast",Q0="toast.swipeStart",K0="toast.swipeMove",G0="toast.swipeCancel",Y0="toast.swipeEnd",ih=x.forwardRef((e,t)=>{const{forceMount:n,open:r,defaultOpen:o,onOpenChange:i,...s}=e,[l,a]=L0({prop:r,defaultProp:o??!0,onChange:i,caller:vi});return f.jsx(ec,{present:n||l,children:f.jsx(Z0,{open:l,...s,ref:t,onClose:()=>a(!1),onPause:On(e.onPause),onResume:On(e.onResume),onSwipeStart:ye(e.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:ye(e.onSwipeMove,u=>{const{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","move"),u.currentTarget.style.setProperty("--radix-toast-swipe-move-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-move-y",`${p}px`)}),onSwipeCancel:ye(e.onSwipeCancel,u=>{u.currentTarget.setAttribute("data-swipe","cancel"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-end-y")}),onSwipeEnd:ye(e.onSwipeEnd,u=>{const{x:c,y:p}=u.detail.delta;u.currentTarget.setAttribute("data-swipe","end"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"),u.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"),u.currentTarget.style.setProperty("--radix-toast-swipe-end-x",`${c}px`),u.currentTarget.style.setProperty("--radix-toast-swipe-end-y",`${p}px`),a(!1)})})})});ih.displayName=vi;var[q0,X0]=eh(vi,{onClose(){}}),Z0=x.forwardRef((e,t)=>{const{__scopeToast:n,type:r="foreground",duration:o,open:i,onClose:s,onEscapeKeyDown:l,onPause:a,onResume:u,onSwipeStart:c,onSwipeMove:p,onSwipeCancel:g,onSwipeEnd:d,...E}=e,y=tl(vi,n),[w,h]=x.useState(null),m=St(t,M=>h(M)),v=x.useRef(null),S=x.useRef(null),C=o||y.duration,b=x.useRef(0),k=x.useRef(C),N=x.useRef(0),{onToastAdd:_,onToastRemove:O}=y,$=On(()=>{var Y;(w==null?void 0:w.contains(document.activeElement))&&((Y=y.viewport)==null||Y.focus()),s()}),F=x.useCallback(M=>{!M||M===1/0||(window.clearTimeout(N.current),b.current=new Date().getTime(),N.current=window.setTimeout($,M))},[$]);x.useEffect(()=>{const M=y.viewport;if(M){const Y=()=>{F(k.current),u==null||u()},B=()=>{const U=new Date().getTime()-b.current;k.current=k.current-U,window.clearTimeout(N.current),a==null||a()};return M.addEventListener(Wa,B),M.addEventListener(Ua,Y),()=>{M.removeEventListener(Wa,B),M.removeEventListener(Ua,Y)}}},[y.viewport,C,a,u,F]),x.useEffect(()=>{i&&!y.isClosePausedRef.current&&F(C)},[i,C,y.isClosePausedRef,F]),x.useEffect(()=>(_(),()=>O()),[_,O]);const Q=x.useMemo(()=>w?fh(w):null,[w]);return y.viewport?f.jsxs(f.Fragment,{children:[Q&&f.jsx(J0,{__scopeToast:n,role:"status","aria-live":r==="foreground"?"assertive":"polite","aria-atomic":!0,children:Q}),f.jsx(q0,{scope:n,onClose:$,children:gi.createPortal(f.jsx(nc.ItemSlot,{scope:n,children:f.jsx(R0,{asChild:!0,onEscapeKeyDown:ye(l,()=>{y.isFocusedToastEscapeKeyDownRef.current||$(),y.isFocusedToastEscapeKeyDownRef.current=!1}),children:f.jsx(He.li,{role:"status","aria-live":"off","aria-atomic":!0,tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":y.swipeDirection,...E,ref:m,style:{userSelect:"none",touchAction:"none",...e.style},onKeyDown:ye(e.onKeyDown,M=>{M.key==="Escape"&&(l==null||l(M.nativeEvent),M.nativeEvent.defaultPrevented||(y.isFocusedToastEscapeKeyDownRef.current=!0,$()))}),onPointerDown:ye(e.onPointerDown,M=>{M.button===0&&(v.current={x:M.clientX,y:M.clientY})}),onPointerMove:ye(e.onPointerMove,M=>{if(!v.current)return;const Y=M.clientX-v.current.x,B=M.clientY-v.current.y,U=!!S.current,T=["left","right"].includes(y.swipeDirection),R=["left","up"].includes(y.swipeDirection)?Math.min:Math.max,I=T?R(0,Y):0,H=T?0:R(0,B),z=M.pointerType==="touch"?10:2,K={x:I,y:H},q={originalEvent:M,delta:K};U?(S.current=K,Bi(K0,p,q,{discrete:!1})):$d(K,y.swipeDirection,z)?(S.current=K,Bi(Q0,c,q,{discrete:!1}),M.target.setPointerCapture(M.pointerId)):(Math.abs(Y)>z||Math.abs(B)>z)&&(v.current=null)}),onPointerUp:ye(e.onPointerUp,M=>{const Y=S.current,B=M.target;if(B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),S.current=null,v.current=null,Y){const U=M.currentTarget,T={originalEvent:M,delta:Y};$d(Y,y.swipeDirection,y.swipeThreshold)?Bi(Y0,d,T,{discrete:!0}):Bi(G0,g,T,{discrete:!0}),U.addEventListener("click",R=>R.preventDefault(),{once:!0})}})})})}),y.viewport)})]}):null}),J0=e=>{const{__scopeToast:t,children:n,...r}=e,o=tl(vi,t),[i,s]=x.useState(!1),[l,a]=x.useState(!1);return nx(()=>s(!0)),x.useEffect(()=>{const u=window.setTimeout(()=>a(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:f.jsx(Jm,{asChild:!0,children:f.jsx(el,{...r,children:i&&f.jsxs(f.Fragment,{children:[o.label," ",n]})})})},ex="ToastTitle",sh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(He.div,{...r,ref:t})});sh.displayName=ex;var tx="ToastDescription",lh=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e;return f.jsx(He.div,{...r,ref:t})});lh.displayName=tx;var ah="ToastAction",uh=x.forwardRef((e,t)=>{const{altText:n,...r}=e;return n.trim()?f.jsx(dh,{altText:n,asChild:!0,children:f.jsx(rc,{...r,ref:t})}):(console.error(`Invalid prop \`altText\` supplied to \`${ah}\`. Expected non-empty \`string\`.`),null)});uh.displayName=ah;var ch="ToastClose",rc=x.forwardRef((e,t)=>{const{__scopeToast:n,...r}=e,o=X0(ch,n);return f.jsx(dh,{asChild:!0,children:f.jsx(He.button,{type:"button",...r,ref:t,onClick:ye(e.onClick,o.onClose)})})});rc.displayName=ch;var dh=x.forwardRef((e,t)=>{const{__scopeToast:n,altText:r,...o}=e;return f.jsx(He.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...o,ref:t})});function fh(e){const t=[];return Array.from(e.childNodes).forEach(r=>{if(r.nodeType===r.TEXT_NODE&&r.textContent&&t.push(r.textContent),rx(r)){const o=r.ariaHidden||r.hidden||r.style.display==="none",i=r.dataset.radixToastAnnounceExclude==="";if(!o)if(i){const s=r.dataset.radixToastAnnounceAlt;s&&t.push(s)}else t.push(...fh(r))}}),t}function Bi(e,t,n,{discrete:r}){const o=n.originalEvent.currentTarget,i=new CustomEvent(e,{bubbles:!0,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Ym(o,i):o.dispatchEvent(i)}var $d=(e,t,n=0)=>{const r=Math.abs(e.x),o=Math.abs(e.y),i=r>o;return t==="left"||t==="right"?i&&r>n:!i&&o>n};function nx(e=()=>{}){const t=On(e);Mn(()=>{let n=0,r=0;return n=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(t)),()=>{window.cancelAnimationFrame(n),window.cancelAnimationFrame(r)}},[t])}function rx(e){return e.nodeType===e.ELEMENT_NODE}function ox(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Wl(e){const t=document.activeElement;return e.some(n=>n===t?!0:(n.focus(),document.activeElement!==t))}var ix=th,ph=rh,mh=ih,hh=sh,gh=lh,vh=uh,yh=rc;function xh(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;ttypeof e=="boolean"?`${e}`:e===0?"0":e,Wd=wh,sx=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return Wd(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:i}=t,s=Object.keys(o).map(u=>{const c=n==null?void 0:n[u],p=i==null?void 0:i[u];if(c===null)return null;const g=Bd(c)||Bd(p);return o[u][g]}),l=n&&Object.entries(n).reduce((u,c)=>{let[p,g]=c;return g===void 0||(u[p]=g),u},{}),a=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((u,c)=>{let{class:p,className:g,...d}=c;return Object.entries(d).every(E=>{let[y,w]=E;return Array.isArray(w)?w.includes({...i,...l}[y]):{...i,...l}[y]===w})?[...u,p,g]:u},[]);return Wd(e,s,a,n==null?void 0:n.class,n==null?void 0:n.className)};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const lx=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Sh=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */var ax={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const ux=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:s,...l},a)=>x.createElement("svg",{ref:a,...ax,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Sh("lucide",o),...l},[...s.map(([u,c])=>x.createElement(u,c)),...Array.isArray(i)?i:[i]]));/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const cx=(e,t)=>{const n=x.forwardRef(({className:r,...o},i)=>x.createElement(ux,{ref:i,iconNode:t,className:Sh(`lucide-${lx(e)}`,r),...o}));return n.displayName=`${e}`,n};/** * @license lucide-react v0.462.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. */const dx=cx("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),oc="-",fx=e=>{const t=mx(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{const l=s.split(oc);return l[0]===""&&l.length!==1&&l.shift(),Eh(l,t)||px(s)},getConflictingClassGroupIds:(s,l)=>{const a=n[s]||[];return l&&r[s]?[...a,...r[s]]:a}}},Eh=(e,t)=>{var s;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?Eh(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const i=e.join(oc);return(s=t.validators.find(({validator:l})=>l(i)))==null?void 0:s.classGroupId},Ud=/^\[(.+)\]$/,px=e=>{if(Ud.test(e)){const t=Ud.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},mx=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return gx(Object.entries(e.classGroups),n).forEach(([i,s])=>{Va(s,r,i,t)}),r},Va=(e,t,n,r)=>{e.forEach(o=>{if(typeof o=="string"){const i=o===""?t:Hd(t,o);i.classGroupId=n;return}if(typeof o=="function"){if(hx(o)){Va(o(r),t,n,r);return}t.validators.push({validator:o,classGroupId:n});return}Object.entries(o).forEach(([i,s])=>{Va(s,Hd(t,i),n,r)})})},Hd=(e,t)=>{let n=e;return t.split(oc).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},hx=e=>e.isThemeGetter,gx=(e,t)=>t?e.map(([n,r])=>{const o=r.map(i=>typeof i=="string"?t+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([s,l])=>[t+s,l])):i);return[n,o]}):e,vx=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(i,s)=>{n.set(i,s),t++,t>e&&(t=0,r=n,n=new Map)};return{get(i){let s=n.get(i);if(s!==void 0)return s;if((s=r.get(i))!==void 0)return o(i,s),s},set(i,s){n.has(i)?n.set(i,s):o(i,s)}}},Ch="!",yx=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,o=t[0],i=t.length,s=l=>{const a=[];let u=0,c=0,p;for(let w=0;wc?p-c:void 0;return{modifiers:a,hasImportantModifier:d,baseClassName:E,maybePostfixModifierPosition:y}};return n?l=>n({className:l,parseClassName:s}):s},xx=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},wx=e=>({cache:vx(e.cacheSize),parseClassName:yx(e),...fx(e)}),Sx=/\s+/,Ex=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,i=[],s=e.trim().split(Sx);let l="";for(let a=s.length-1;a>=0;a-=1){const u=s[a],{modifiers:c,hasImportantModifier:p,baseClassName:g,maybePostfixModifierPosition:d}=n(u);let E=!!d,y=r(E?g.substring(0,d):g);if(!y){if(!E){l=u+(l.length>0?" "+l:l);continue}if(y=r(g),!y){l=u+(l.length>0?" "+l:l);continue}E=!1}const w=xx(c).join(":"),h=p?w+Ch:w,m=h+y;if(i.includes(m))continue;i.push(m);const v=o(y,E);for(let S=0;S0?" "+l:l)}return l};function Cx(){let e=0,t,n,r="";for(;e{if(typeof e=="string")return e;let t,n="";for(let r=0;rp(c),e());return n=wx(u),r=n.cache.get,o=n.cache.set,i=l,l(a)}function l(a){const u=r(a);if(u)return u;const c=Ex(a,n);return o(a,c),c}return function(){return i(Cx.apply(null,arguments))}}const re=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},kh=/^\[(?:([a-z-]+):)?(.+)\]$/i,kx=/^\d+\/\d+$/,Px=new Set(["px","full","screen"]),Tx=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Nx=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Rx=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,jx=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Ax=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Lt=e=>zr(e)||Px.has(e)||kx.test(e),on=e=>lo(e,"length",Dx),zr=e=>!!e&&!Number.isNaN(Number(e)),Ul=e=>lo(e,"number",zr),Co=e=>!!e&&Number.isInteger(Number(e)),Ox=e=>e.endsWith("%")&&zr(e.slice(0,-1)),V=e=>kh.test(e),sn=e=>Tx.test(e),Mx=new Set(["length","size","percentage"]),_x=e=>lo(e,Mx,Ph),Ix=e=>lo(e,"position",Ph),Lx=new Set(["image","url"]),Fx=e=>lo(e,Lx,Bx),zx=e=>lo(e,"",$x),bo=()=>!0,lo=(e,t,n)=>{const r=kh.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},Dx=e=>Nx.test(e)&&!Rx.test(e),Ph=()=>!1,$x=e=>jx.test(e),Bx=e=>Ax.test(e),Wx=()=>{const e=re("colors"),t=re("spacing"),n=re("blur"),r=re("brightness"),o=re("borderColor"),i=re("borderRadius"),s=re("borderSpacing"),l=re("borderWidth"),a=re("contrast"),u=re("grayscale"),c=re("hueRotate"),p=re("invert"),g=re("gap"),d=re("gradientColorStops"),E=re("gradientColorStopPositions"),y=re("inset"),w=re("margin"),h=re("opacity"),m=re("padding"),v=re("saturate"),S=re("scale"),C=re("sepia"),b=re("skew"),k=re("space"),N=re("translate"),_=()=>["auto","contain","none"],O=()=>["auto","hidden","clip","visible","scroll"],$=()=>["auto",V,t],F=()=>[V,t],Q=()=>["",Lt,on],M=()=>["auto",zr,V],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],B=()=>["solid","dashed","dotted","double","none"],U=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],T=()=>["start","end","center","between","around","evenly","stretch"],R=()=>["","0",V],I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],H=()=>[zr,V];return{cacheSize:500,separator:":",theme:{colors:[bo],spacing:[Lt,on],blur:["none","",sn,V],brightness:H(),borderColor:[e],borderRadius:["none","","full",sn,V],borderSpacing:F(),borderWidth:Q(),contrast:H(),grayscale:R(),hueRotate:H(),invert:R(),gap:F(),gradientColorStops:[e],gradientColorStopPositions:[Ox,on],inset:$(),margin:$(),opacity:H(),padding:F(),saturate:H(),scale:H(),sepia:R(),skew:H(),space:F(),translate:F()},classGroups:{aspect:[{aspect:["auto","square","video",V]}],container:["container"],columns:[{columns:[sn]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),V]}],overflow:[{overflow:O()}],"overflow-x":[{"overflow-x":O()}],"overflow-y":[{"overflow-y":O()}],overscroll:[{overscroll:_()}],"overscroll-x":[{"overscroll-x":_()}],"overscroll-y":[{"overscroll-y":_()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[y]}],"inset-x":[{"inset-x":[y]}],"inset-y":[{"inset-y":[y]}],start:[{start:[y]}],end:[{end:[y]}],top:[{top:[y]}],right:[{right:[y]}],bottom:[{bottom:[y]}],left:[{left:[y]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Co,V]}],basis:[{basis:$()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",V]}],grow:[{grow:R()}],shrink:[{shrink:R()}],order:[{order:["first","last","none",Co,V]}],"grid-cols":[{"grid-cols":[bo]}],"col-start-end":[{col:["auto",{span:["full",Co,V]},V]}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":[bo]}],"row-start-end":[{row:["auto",{span:[Co,V]},V]}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",V]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",V]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...T()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...T(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...T(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[m]}],px:[{px:[m]}],py:[{py:[m]}],ps:[{ps:[m]}],pe:[{pe:[m]}],pt:[{pt:[m]}],pr:[{pr:[m]}],pb:[{pb:[m]}],pl:[{pl:[m]}],m:[{m:[w]}],mx:[{mx:[w]}],my:[{my:[w]}],ms:[{ms:[w]}],me:[{me:[w]}],mt:[{mt:[w]}],mr:[{mr:[w]}],mb:[{mb:[w]}],ml:[{ml:[w]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",V,t]}],"min-w":[{"min-w":[V,t,"min","max","fit"]}],"max-w":[{"max-w":[V,t,"none","full","min","max","fit","prose",{screen:[sn]},sn]}],h:[{h:[V,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[V,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[V,t,"auto","min","max","fit"]}],"font-size":[{text:["base",sn,on]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ul]}],"font-family":[{font:[bo]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",V]}],"line-clamp":[{"line-clamp":["none",zr,Ul]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Lt,V]}],"list-image":[{"list-image":["none",V]}],"list-style-type":[{list:["none","disc","decimal",V]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[h]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[h]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...B(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Lt,on]}],"underline-offset":[{"underline-offset":["auto",Lt,V]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:F()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",V]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",V]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[h]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),Ix]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",_x]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Fx]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[E]}],"gradient-via-pos":[{via:[E]}],"gradient-to-pos":[{to:[E]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[l]}],"border-w-x":[{"border-x":[l]}],"border-w-y":[{"border-y":[l]}],"border-w-s":[{"border-s":[l]}],"border-w-e":[{"border-e":[l]}],"border-w-t":[{"border-t":[l]}],"border-w-r":[{"border-r":[l]}],"border-w-b":[{"border-b":[l]}],"border-w-l":[{"border-l":[l]}],"border-opacity":[{"border-opacity":[h]}],"border-style":[{border:[...B(),"hidden"]}],"divide-x":[{"divide-x":[l]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[l]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[h]}],"divide-style":[{divide:B()}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["",...B()]}],"outline-offset":[{"outline-offset":[Lt,V]}],"outline-w":[{outline:[Lt,on]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:Q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[h]}],"ring-offset-w":[{"ring-offset":[Lt,on]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",sn,zx]}],"shadow-color":[{shadow:[bo]}],opacity:[{opacity:[h]}],"mix-blend":[{"mix-blend":[...U(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":U()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[a]}],"drop-shadow":[{"drop-shadow":["","none",sn,V]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[p]}],saturate:[{saturate:[v]}],sepia:[{sepia:[C]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[a]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[p]}],"backdrop-opacity":[{"backdrop-opacity":[h]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[C]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[s]}],"border-spacing-x":[{"border-spacing-x":[s]}],"border-spacing-y":[{"border-spacing-y":[s]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",V]}],duration:[{duration:H()}],ease:[{ease:["linear","in","out","in-out",V]}],delay:[{delay:H()}],animate:[{animate:["none","spin","ping","pulse","bounce",V]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[S]}],"scale-x":[{"scale-x":[S]}],"scale-y":[{"scale-y":[S]}],rotate:[{rotate:[Co,V]}],"translate-x":[{"translate-x":[N]}],"translate-y":[{"translate-y":[N]}],"skew-x":[{"skew-x":[b]}],"skew-y":[{"skew-y":[b]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",V]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",V]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":F()}],"scroll-mx":[{"scroll-mx":F()}],"scroll-my":[{"scroll-my":F()}],"scroll-ms":[{"scroll-ms":F()}],"scroll-me":[{"scroll-me":F()}],"scroll-mt":[{"scroll-mt":F()}],"scroll-mr":[{"scroll-mr":F()}],"scroll-mb":[{"scroll-mb":F()}],"scroll-ml":[{"scroll-ml":F()}],"scroll-p":[{"scroll-p":F()}],"scroll-px":[{"scroll-px":F()}],"scroll-py":[{"scroll-py":F()}],"scroll-ps":[{"scroll-ps":F()}],"scroll-pe":[{"scroll-pe":F()}],"scroll-pt":[{"scroll-pt":F()}],"scroll-pr":[{"scroll-pr":F()}],"scroll-pb":[{"scroll-pb":F()}],"scroll-pl":[{"scroll-pl":F()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",V]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Lt,on,Ul]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},Ux=bx(Wx);function dr(...e){return Ux(wh(e))}const Hx=ix,Th=x.forwardRef(({className:e,...t},n)=>f.jsx(ph,{ref:n,className:dr("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",e),...t}));Th.displayName=ph.displayName;const Vx=sx("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),Nh=x.forwardRef(({className:e,variant:t,...n},r)=>f.jsx(mh,{ref:r,className:dr(Vx({variant:t}),e),...n}));Nh.displayName=mh.displayName;const Qx=x.forwardRef(({className:e,...t},n)=>f.jsx(vh,{ref:n,className:dr("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",e),...t}));Qx.displayName=vh.displayName;const Rh=x.forwardRef(({className:e,...t},n)=>f.jsx(yh,{ref:n,className:dr("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",e),"toast-close":"",...t,children:f.jsx(dx,{className:"h-4 w-4"})}));Rh.displayName=yh.displayName;const jh=x.forwardRef(({className:e,...t},n)=>f.jsx(hh,{ref:n,className:dr("text-sm font-semibold",e),...t}));jh.displayName=hh.displayName;const Ah=x.forwardRef(({className:e,...t},n)=>f.jsx(gh,{ref:n,className:dr("text-sm opacity-90",e),...t}));Ah.displayName=gh.displayName;function Kx(){const{toasts:e}=p0();return f.jsxs(Hx,{children:[e.map(function({id:t,title:n,description:r,action:o,...i}){return f.jsxs(Nh,{...i,children:[f.jsxs("div",{className:"grid gap-1",children:[n&&f.jsx(jh,{children:n}),r&&f.jsx(Ah,{children:r})]}),o,f.jsx(Rh,{})]},t)}),f.jsx(Th,{})]})}var Vd=["light","dark"],Gx="(prefers-color-scheme: dark)",Yx=x.createContext(void 0),qx={setTheme:e=>{},themes:[]},Xx=()=>{var e;return(e=x.useContext(Yx))!=null?e:qx};x.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:o,defaultTheme:i,value:s,attrs:l,nonce:a})=>{let u=i==="system",c=n==="class"?`var d=document.documentElement,c=d.classList;${`c.remove(${l.map(E=>`'${E}'`).join(",")})`};`:`var d=document.documentElement,n='${n}',s='setAttribute';`,p=o?Vd.includes(i)&&i?`if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${i}'`:"if(e==='light'||e==='dark')d.style.colorScheme=e":"",g=(E,y=!1,w=!0)=>{let h=s?s[E]:E,m=y?E+"|| ''":`'${h}'`,v="";return o&&w&&!y&&Vd.includes(E)&&(v+=`d.style.colorScheme = '${E}';`),n==="class"?y||h?v+=`c.add(${m})`:v+="null":h&&(v+=`d[s](n,${m})`),v},d=e?`!function(){${c}${g(e)}}()`:r?`!function(){try{${c}var e=localStorage.getItem('${t}');if('system'===e||(!e&&${u})){var t='${Gx}',m=window.matchMedia(t);if(m.media!==t||m.matches){${g("dark")}}else{${g("light")}}}else if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}${u?"":"else{"+g(i,!1,!1)+"}"}${p}}catch(e){}}()`:`!function(){try{${c}var e=localStorage.getItem('${t}');if(e){${s?`var x=${JSON.stringify(s)};`:""}${g(s?"x[e]":"e",!0)}}else{${g(i,!1,!1)};}${p}}catch(t){}}();`;return x.createElement("script",{nonce:a,dangerouslySetInnerHTML:{__html:d}})});var Zx=e=>{switch(e){case"success":return tw;case"info":return rw;case"warning":return nw;case"error":return ow;default:return null}},Jx=Array(12).fill(0),ew=({visible:e,className:t})=>A.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},A.createElement("div",{className:"sonner-spinner"},Jx.map((n,r)=>A.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),tw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),nw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),rw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),ow=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},A.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),iw=A.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},A.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),A.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),sw=()=>{let[e,t]=A.useState(document.hidden);return A.useEffect(()=>{let n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e},Qa=1,lw=class{constructor(){this.subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]},this.create=e=>{var t;let{message:n,...r}=e,o=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Qa++,i=this.toasts.find(l=>l.id===o),s=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(l=>l.id===o?(this.publish({...l,...e,id:o,title:n}),{...l,...e,id:o,dismissible:s,title:n}):l):this.addToast({title:n,...r,dismissible:s,id:o}),o},this.dismiss=e=>(this.dismissedToasts.add(e),e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e),this.message=(e,t)=>this.create({...t,message:e}),this.error=(e,t)=>this.create({...t,message:e,type:"error"}),this.success=(e,t)=>this.create({...t,type:"success",message:e}),this.info=(e,t)=>this.create({...t,type:"info",message:e}),this.warning=(e,t)=>this.create({...t,type:"warning",message:e}),this.loading=(e,t)=>this.create({...t,type:"loading",message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading,description:typeof t.description!="function"?t.description:void 0}));let r=e instanceof Promise?e:e(),o=n!==void 0,i,s=r.then(async a=>{if(i=["resolve",a],A.isValidElement(a))o=!1,this.create({id:n,type:"default",message:a});else if(uw(a)&&!a.ok){o=!1;let u=typeof t.error=="function"?await t.error(`HTTP error! status: ${a.status}`):t.error,c=typeof t.description=="function"?await t.description(`HTTP error! status: ${a.status}`):t.description;this.create({id:n,type:"error",message:u,description:c})}else if(t.success!==void 0){o=!1;let u=typeof t.success=="function"?await t.success(a):t.success,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"success",message:u,description:c})}}).catch(async a=>{if(i=["reject",a],t.error!==void 0){o=!1;let u=typeof t.error=="function"?await t.error(a):t.error,c=typeof t.description=="function"?await t.description(a):t.description;this.create({id:n,type:"error",message:u,description:c})}}).finally(()=>{var a;o&&(this.dismiss(n),n=void 0),(a=t.finally)==null||a.call(t)}),l=()=>new Promise((a,u)=>s.then(()=>i[0]==="reject"?u(i[1]):a(i[1])).catch(u));return typeof n!="string"&&typeof n!="number"?{unwrap:l}:Object.assign(n,{unwrap:l})},this.custom=(e,t)=>{let n=(t==null?void 0:t.id)||Qa++;return this.create({jsx:e(n),id:n,...t}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},ze=new lw,aw=(e,t)=>{let n=(t==null?void 0:t.id)||Qa++;return ze.addToast({title:e,...t,id:n}),n},uw=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",cw=aw,dw=()=>ze.toasts,fw=()=>ze.getActiveToasts();Object.assign(cw,{success:ze.success,info:ze.info,warning:ze.warning,error:ze.error,custom:ze.custom,message:ze.message,promise:ze.promise,dismiss:ze.dismiss,loading:ze.loading},{getHistory:dw,getToasts:fw});function pw(e,{insertAt:t}={}){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",t==="top"&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}pw(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)} `);function Wi(e){return e.label!==void 0}var mw=3,hw="32px",gw="16px",Qd=4e3,vw=356,yw=14,xw=20,ww=200;function ft(...e){return e.filter(Boolean).join(" ")}function Sw(e){let[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}var Ew=e=>{var t,n,r,o,i,s,l,a,u,c,p;let{invert:g,toast:d,unstyled:E,interacting:y,setHeights:w,visibleToasts:h,heights:m,index:v,toasts:S,expanded:C,removeToast:b,defaultRichColors:k,closeButton:N,style:_,cancelButtonStyle:O,actionButtonStyle:$,className:F="",descriptionClassName:Q="",duration:M,position:Y,gap:B,loadingIcon:U,expandByDefault:T,classNames:R,icons:I,closeButtonAriaLabel:H="Close toast",pauseWhenPageIsHidden:z}=e,[K,q]=A.useState(null),[he,Te]=A.useState(null),[J,pr]=A.useState(!1),[Xt,Bn]=A.useState(!1),[Zt,mr]=A.useState(!1),[Jt,xi]=A.useState(!1),[ul,wi]=A.useState(!1),[cl,po]=A.useState(0),[hr,wc]=A.useState(0),mo=A.useRef(d.duration||M||Qd),Sc=A.useRef(null),Wn=A.useRef(null),Tg=v===0,Ng=v+1<=h,et=d.type,gr=d.dismissible!==!1,Rg=d.className||"",jg=d.descriptionClassName||"",Si=A.useMemo(()=>m.findIndex(W=>W.toastId===d.id)||0,[m,d.id]),Ag=A.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:N},[d.closeButton,N]),Ec=A.useMemo(()=>d.duration||M||Qd,[d.duration,M]),dl=A.useRef(0),vr=A.useRef(0),Cc=A.useRef(0),yr=A.useRef(null),[Og,Mg]=Y.split("-"),bc=A.useMemo(()=>m.reduce((W,te,se)=>se>=Si?W:W+te.height,0),[m,Si]),kc=sw(),_g=d.invert||g,fl=et==="loading";vr.current=A.useMemo(()=>Si*B+bc,[Si,bc]),A.useEffect(()=>{mo.current=Ec},[Ec]),A.useEffect(()=>{pr(!0)},[]),A.useEffect(()=>{let W=Wn.current;if(W){let te=W.getBoundingClientRect().height;return wc(te),w(se=>[{toastId:d.id,height:te,position:d.position},...se]),()=>w(se=>se.filter(at=>at.toastId!==d.id))}},[w,d.id]),A.useLayoutEffect(()=>{if(!J)return;let W=Wn.current,te=W.style.height;W.style.height="auto";let se=W.getBoundingClientRect().height;W.style.height=te,wc(se),w(at=>at.find(ut=>ut.toastId===d.id)?at.map(ut=>ut.toastId===d.id?{...ut,height:se}:ut):[{toastId:d.id,height:se,position:d.position},...at])},[J,d.title,d.description,w,d.id]);let en=A.useCallback(()=>{Bn(!0),po(vr.current),w(W=>W.filter(te=>te.toastId!==d.id)),setTimeout(()=>{b(d)},ww)},[d,b,w,vr]);A.useEffect(()=>{if(d.promise&&et==="loading"||d.duration===1/0||d.type==="loading")return;let W;return C||y||z&&kc?(()=>{if(Cc.current{var te;(te=d.onAutoClose)==null||te.call(d,d),en()},mo.current)),()=>clearTimeout(W)},[C,y,d,et,z,kc,en]),A.useEffect(()=>{d.delete&&en()},[en,d.delete]);function Ig(){var W,te,se;return I!=null&&I.loading?A.createElement("div",{className:ft(R==null?void 0:R.loader,(W=d==null?void 0:d.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":et==="loading"},I.loading):U?A.createElement("div",{className:ft(R==null?void 0:R.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":et==="loading"},U):A.createElement(ew,{className:ft(R==null?void 0:R.loader,(se=d==null?void 0:d.classNames)==null?void 0:se.loader),visible:et==="loading"})}return A.createElement("li",{tabIndex:0,ref:Wn,className:ft(F,Rg,R==null?void 0:R.toast,(t=d==null?void 0:d.classNames)==null?void 0:t.toast,R==null?void 0:R.default,R==null?void 0:R[et],(n=d==null?void 0:d.classNames)==null?void 0:n[et]),"data-sonner-toast":"","data-rich-colors":(r=d.richColors)!=null?r:k,"data-styled":!(d.jsx||d.unstyled||E),"data-mounted":J,"data-promise":!!d.promise,"data-swiped":ul,"data-removed":Xt,"data-visible":Ng,"data-y-position":Og,"data-x-position":Mg,"data-index":v,"data-front":Tg,"data-swiping":Zt,"data-dismissible":gr,"data-type":et,"data-invert":_g,"data-swipe-out":Jt,"data-swipe-direction":he,"data-expanded":!!(C||T&&J),style:{"--index":v,"--toasts-before":v,"--z-index":S.length-v,"--offset":`${Xt?cl:vr.current}px`,"--initial-height":T?"auto":`${hr}px`,..._,...d.style},onDragEnd:()=>{mr(!1),q(null),yr.current=null},onPointerDown:W=>{fl||!gr||(Sc.current=new Date,po(vr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(mr(!0),yr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,te,se,at;if(Jt||!gr)return;yr.current=null;let ut=Number(((W=Wn.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),tn=Number(((te=Wn.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Un=new Date().getTime()-((se=Sc.current)==null?void 0:se.getTime()),ct=K==="x"?ut:tn,nn=Math.abs(ct)/Un;if(Math.abs(ct)>=xw||nn>.11){po(vr.current),(at=d.onDismiss)==null||at.call(d,d),Te(K==="x"?ut>0?"right":"left":tn>0?"down":"up"),en(),xi(!0),wi(!1);return}mr(!1),q(null)},onPointerMove:W=>{var te,se,at,ut;if(!yr.current||!gr||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let tn=W.clientY-yr.current.y,Un=W.clientX-yr.current.x,ct=(se=e.swipeDirections)!=null?se:Sw(Y);!K&&(Math.abs(Un)>1||Math.abs(tn)>1)&&q(Math.abs(Un)>Math.abs(tn)?"x":"y");let nn={x:0,y:0};K==="y"?(ct.includes("top")||ct.includes("bottom"))&&(ct.includes("top")&&tn<0||ct.includes("bottom")&&tn>0)&&(nn.y=tn):K==="x"&&(ct.includes("left")||ct.includes("right"))&&(ct.includes("left")&&Un<0||ct.includes("right")&&Un>0)&&(nn.x=Un),(Math.abs(nn.x)>0||Math.abs(nn.y)>0)&&wi(!0),(at=Wn.current)==null||at.style.setProperty("--swipe-amount-x",`${nn.x}px`),(ut=Wn.current)==null||ut.style.setProperty("--swipe-amount-y",`${nn.y}px`)}},Ag&&!d.jsx?A.createElement("button",{"aria-label":H,"data-disabled":fl,"data-close-button":!0,onClick:fl||!gr?()=>{}:()=>{var W;en(),(W=d.onDismiss)==null||W.call(d,d)},className:ft(R==null?void 0:R.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=I==null?void 0:I.close)!=null?i:iw):null,d.jsx||x.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:A.createElement(A.Fragment,null,et||d.icon||d.promise?A.createElement("div",{"data-icon":"",className:ft(R==null?void 0:R.icon,(s=d==null?void 0:d.classNames)==null?void 0:s.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Ig():null,d.type!=="loading"?d.icon||(I==null?void 0:I[et])||Zx(et):null):null,A.createElement("div",{"data-content":"",className:ft(R==null?void 0:R.content,(l=d==null?void 0:d.classNames)==null?void 0:l.content)},A.createElement("div",{"data-title":"",className:ft(R==null?void 0:R.title,(a=d==null?void 0:d.classNames)==null?void 0:a.title)},typeof d.title=="function"?d.title():d.title),d.description?A.createElement("div",{"data-description":"",className:ft(Q,jg,R==null?void 0:R.description,(u=d==null?void 0:d.classNames)==null?void 0:u.description)},typeof d.description=="function"?d.description():d.description):null),x.isValidElement(d.cancel)?d.cancel:d.cancel&&Wi(d.cancel)?A.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||O,onClick:W=>{var te,se;Wi(d.cancel)&&gr&&((se=(te=d.cancel).onClick)==null||se.call(te,W),en())},className:ft(R==null?void 0:R.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,x.isValidElement(d.action)?d.action:d.action&&Wi(d.action)?A.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||$,onClick:W=>{var te,se;Wi(d.action)&&((se=(te=d.action).onClick)==null||se.call(te,W),!W.defaultPrevented&&en())},className:ft(R==null?void 0:R.actionButton,(p=d==null?void 0:d.classNames)==null?void 0:p.actionButton)},d.action.label):null))};function Kd(){if(typeof window>"u"||typeof document>"u")return"ltr";let e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function Cw(e,t){let n={};return[e,t].forEach((r,o)=>{let i=o===1,s=i?"--mobile-offset":"--offset",l=i?gw:hw;function a(u){["top","right","bottom","left"].forEach(c=>{n[`${s}-${c}`]=typeof u=="number"?`${u}px`:u})}typeof r=="number"||typeof r=="string"?a(r):typeof r=="object"?["top","right","bottom","left"].forEach(u=>{r[u]===void 0?n[`${s}-${u}`]=l:n[`${s}-${u}`]=typeof r[u]=="number"?`${r[u]}px`:r[u]}):a(l)}),n}var bw=x.forwardRef(function(e,t){let{invert:n,position:r="bottom-right",hotkey:o=["altKey","KeyT"],expand:i,closeButton:s,className:l,offset:a,mobileOffset:u,theme:c="light",richColors:p,duration:g,style:d,visibleToasts:E=mw,toastOptions:y,dir:w=Kd(),gap:h=yw,loadingIcon:m,icons:v,containerAriaLabel:S="Notifications",pauseWhenPageIsHidden:C}=e,[b,k]=A.useState([]),N=A.useMemo(()=>Array.from(new Set([r].concat(b.filter(z=>z.position).map(z=>z.position)))),[b,r]),[_,O]=A.useState([]),[$,F]=A.useState(!1),[Q,M]=A.useState(!1),[Y,B]=A.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),U=A.useRef(null),T=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),R=A.useRef(null),I=A.useRef(!1),H=A.useCallback(z=>{k(K=>{var q;return(q=K.find(he=>he.id===z.id))!=null&&q.delete||ze.dismiss(z.id),K.filter(({id:he})=>he!==z.id)})},[]);return A.useEffect(()=>ze.subscribe(z=>{if(z.dismiss){k(K=>K.map(q=>q.id===z.id?{...q,delete:!0}:q));return}setTimeout(()=>{Vm.flushSync(()=>{k(K=>{let q=K.findIndex(he=>he.id===z.id);return q!==-1?[...K.slice(0,q),{...K[q],...z},...K.slice(q+1)]:[z,...K]})})})}),[]),A.useEffect(()=>{if(c!=="system"){B(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?B("dark"):B("light")),typeof window>"u")return;let z=window.matchMedia("(prefers-color-scheme: dark)");try{z.addEventListener("change",({matches:K})=>{B(K?"dark":"light")})}catch{z.addListener(({matches:q})=>{try{B(q?"dark":"light")}catch(he){console.error(he)}})}},[c]),A.useEffect(()=>{b.length<=1&&F(!1)},[b]),A.useEffect(()=>{let z=K=>{var q,he;o.every(Te=>K[Te]||K.code===Te)&&(F(!0),(q=U.current)==null||q.focus()),K.code==="Escape"&&(document.activeElement===U.current||(he=U.current)!=null&&he.contains(document.activeElement))&&F(!1)};return document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z)},[o]),A.useEffect(()=>{if(U.current)return()=>{R.current&&(R.current.focus({preventScroll:!0}),R.current=null,I.current=!1)}},[U.current]),A.createElement("section",{ref:t,"aria-label":`${S} ${T}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},N.map((z,K)=>{var q;let[he,Te]=z.split("-");return b.length?A.createElement("ol",{key:z,dir:w==="auto"?Kd():w,tabIndex:-1,ref:U,className:l,"data-sonner-toaster":!0,"data-theme":Y,"data-y-position":he,"data-lifted":$&&b.length>1&&!i,"data-x-position":Te,style:{"--front-toast-height":`${((q=_[0])==null?void 0:q.height)||0}px`,"--width":`${vw}px`,"--gap":`${h}px`,...d,...Cw(a,u)},onBlur:J=>{I.current&&!J.currentTarget.contains(J.relatedTarget)&&(I.current=!1,R.current&&(R.current.focus({preventScroll:!0}),R.current=null))},onFocus:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||I.current||(I.current=!0,R.current=J.relatedTarget)},onMouseEnter:()=>F(!0),onMouseMove:()=>F(!0),onMouseLeave:()=>{Q||F(!1)},onDragEnd:()=>F(!1),onPointerDown:J=>{J.target instanceof HTMLElement&&J.target.dataset.dismissible==="false"||M(!0)},onPointerUp:()=>M(!1)},b.filter(J=>!J.position&&K===0||J.position===z).map((J,pr)=>{var Xt,Bn;return A.createElement(Ew,{key:J.id,icons:v,index:pr,toast:J,defaultRichColors:p,duration:(Xt=y==null?void 0:y.duration)!=null?Xt:g,className:y==null?void 0:y.className,descriptionClassName:y==null?void 0:y.descriptionClassName,invert:n,visibleToasts:E,closeButton:(Bn=y==null?void 0:y.closeButton)!=null?Bn:s,interacting:Q,position:z,style:y==null?void 0:y.style,unstyled:y==null?void 0:y.unstyled,classNames:y==null?void 0:y.classNames,cancelButtonStyle:y==null?void 0:y.cancelButtonStyle,actionButtonStyle:y==null?void 0:y.actionButtonStyle,removeToast:H,toasts:b.filter(Zt=>Zt.position==J.position),heights:_.filter(Zt=>Zt.position==J.position),setHeights:O,expandByDefault:i,gap:h,loadingIcon:m,expanded:$,pauseWhenPageIsHidden:C,swipeDirections:e.swipeDirections})})):null}))});const kw=({...e})=>{const{theme:t="system"}=Xx();return f.jsx(bw,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...e})},Pw=["top","right","bottom","left"],_n=Math.min,Ke=Math.max,As=Math.round,Ui=Math.floor,Mt=e=>({x:e,y:e}),Tw={left:"right",right:"left",bottom:"top",top:"bottom"},Nw={start:"end",end:"start"};function Ka(e,t,n){return Ke(e,_n(t,n))}function Gt(e,t){return typeof e=="function"?e(t):e}function Yt(e){return e.split("-")[0]}function ao(e){return e.split("-")[1]}function ic(e){return e==="x"?"y":"x"}function sc(e){return e==="y"?"height":"width"}const Rw=new Set(["top","bottom"]);function jt(e){return Rw.has(Yt(e))?"y":"x"}function lc(e){return ic(jt(e))}function jw(e,t,n){n===void 0&&(n=!1);const r=ao(e),o=lc(e),i=sc(o);let s=o==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=Os(s)),[s,Os(s)]}function Aw(e){const t=Os(e);return[Ga(e),t,Ga(t)]}function Ga(e){return e.replace(/start|end/g,t=>Nw[t])}const Gd=["left","right"],Yd=["right","left"],Ow=["top","bottom"],Mw=["bottom","top"];function _w(e,t,n){switch(e){case"top":case"bottom":return n?t?Yd:Gd:t?Gd:Yd;case"left":case"right":return t?Ow:Mw;default:return[]}}function Iw(e,t,n,r){const o=ao(e);let i=_w(Yt(e),n==="start",r);return o&&(i=i.map(s=>s+"-"+o),t&&(i=i.concat(i.map(Ga)))),i}function Os(e){return e.replace(/left|right|bottom|top/g,t=>Tw[t])}function Lw(e){return{top:0,right:0,bottom:0,left:0,...e}}function Oh(e){return typeof e!="number"?Lw(e):{top:e,right:e,bottom:e,left:e}}function Ms(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function qd(e,t,n){let{reference:r,floating:o}=e;const i=jt(t),s=lc(t),l=sc(s),a=Yt(t),u=i==="y",c=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,g=r[l]/2-o[l]/2;let d;switch(a){case"top":d={x:c,y:r.y-o.height};break;case"bottom":d={x:c,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:p};break;case"left":d={x:r.x-o.width,y:p};break;default:d={x:r.x,y:r.y}}switch(ao(t)){case"start":d[s]-=g*(n&&u?-1:1);break;case"end":d[s]+=g*(n&&u?-1:1);break}return d}const Fw=async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:i=[],platform:s}=n,l=i.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:p}=qd(u,r,a),g=r,d={},E=0;for(let y=0;y({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:i,platform:s,elements:l,middlewareData:a}=t,{element:u,padding:c=0}=Gt(e,t)||{};if(u==null)return{};const p=Oh(c),g={x:n,y:r},d=lc(o),E=sc(d),y=await s.getDimensions(u),w=d==="y",h=w?"top":"left",m=w?"bottom":"right",v=w?"clientHeight":"clientWidth",S=i.reference[E]+i.reference[d]-g[d]-i.floating[E],C=g[d]-i.reference[d],b=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let k=b?b[v]:0;(!k||!await(s.isElement==null?void 0:s.isElement(b)))&&(k=l.floating[v]||i.floating[E]);const N=S/2-C/2,_=k/2-y[E]/2-1,O=_n(p[h],_),$=_n(p[m],_),F=O,Q=k-y[E]-$,M=k/2-y[E]/2+N,Y=Ka(F,M,Q),B=!a.arrow&&ao(o)!=null&&M!==Y&&i.reference[E]/2-(MM<=0)){var $,F;const M=((($=i.flip)==null?void 0:$.index)||0)+1,Y=k[M];if(Y&&(!(p==="alignment"?m!==jt(Y):!1)||O.every(T=>T.overflows[0]>0&&jt(T.placement)===m)))return{data:{index:M,overflows:O},reset:{placement:Y}};let B=(F=O.filter(U=>U.overflows[0]<=0).sort((U,T)=>U.overflows[1]-T.overflows[1])[0])==null?void 0:F.placement;if(!B)switch(d){case"bestFit":{var Q;const U=(Q=O.filter(T=>{if(b){const R=jt(T.placement);return R===m||R==="y"}return!0}).map(T=>[T.placement,T.overflows.filter(R=>R>0).reduce((R,I)=>R+I,0)]).sort((T,R)=>T[1]-R[1])[0])==null?void 0:Q[0];U&&(B=U);break}case"initialPlacement":B=l;break}if(o!==B)return{reset:{placement:B}}}return{}}}};function Xd(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Zd(e){return Pw.some(t=>e[t]>=0)}const $w=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...o}=Gt(e,t);switch(r){case"referenceHidden":{const i=await ni(t,{...o,elementContext:"reference"}),s=Xd(i,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Zd(s)}}}case"escaped":{const i=await ni(t,{...o,altBoundary:!0}),s=Xd(i,n.floating);return{data:{escapedOffsets:s,escaped:Zd(s)}}}default:return{}}}}},Mh=new Set(["left","top"]);async function Bw(e,t){const{placement:n,platform:r,elements:o}=e,i=await(r.isRTL==null?void 0:r.isRTL(o.floating)),s=Yt(n),l=ao(n),a=jt(n)==="y",u=Mh.has(s)?-1:1,c=i&&a?-1:1,p=Gt(t,e);let{mainAxis:g,crossAxis:d,alignmentAxis:E}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&typeof E=="number"&&(d=l==="end"?E*-1:E),a?{x:d*c,y:g*u}:{x:g*u,y:d*c}}const Ww=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:i,placement:s,middlewareData:l}=t,a=await Bw(t,e);return s===((n=l.offset)==null?void 0:n.placement)&&(r=l.arrow)!=null&&r.alignmentOffset?{}:{x:o+a.x,y:i+a.y,data:{...a,placement:s}}}}},Uw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:w=>{let{x:h,y:m}=w;return{x:h,y:m}}},...a}=Gt(e,t),u={x:n,y:r},c=await ni(t,a),p=jt(Yt(o)),g=ic(p);let d=u[g],E=u[p];if(i){const w=g==="y"?"top":"left",h=g==="y"?"bottom":"right",m=d+c[w],v=d-c[h];d=Ka(m,d,v)}if(s){const w=p==="y"?"top":"left",h=p==="y"?"bottom":"right",m=E+c[w],v=E-c[h];E=Ka(m,E,v)}const y=l.fn({...t,[g]:d,[p]:E});return{...y,data:{x:y.x-n,y:y.y-r,enabled:{[g]:i,[p]:s}}}}}},Hw=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:i,middlewareData:s}=t,{offset:l=0,mainAxis:a=!0,crossAxis:u=!0}=Gt(e,t),c={x:n,y:r},p=jt(o),g=ic(p);let d=c[g],E=c[p];const y=Gt(l,t),w=typeof y=="number"?{mainAxis:y,crossAxis:0}:{mainAxis:0,crossAxis:0,...y};if(a){const v=g==="y"?"height":"width",S=i.reference[g]-i.floating[v]+w.mainAxis,C=i.reference[g]+i.reference[v]-w.mainAxis;dC&&(d=C)}if(u){var h,m;const v=g==="y"?"width":"height",S=Mh.has(Yt(o)),C=i.reference[p]-i.floating[v]+(S&&((h=s.offset)==null?void 0:h[p])||0)+(S?0:w.crossAxis),b=i.reference[p]+i.reference[v]+(S?0:((m=s.offset)==null?void 0:m[p])||0)-(S?w.crossAxis:0);Eb&&(E=b)}return{[g]:d,[p]:E}}}},Vw=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:i,platform:s,elements:l}=t,{apply:a=()=>{},...u}=Gt(e,t),c=await ni(t,u),p=Yt(o),g=ao(o),d=jt(o)==="y",{width:E,height:y}=i.floating;let w,h;p==="top"||p==="bottom"?(w=p,h=g===(await(s.isRTL==null?void 0:s.isRTL(l.floating))?"start":"end")?"left":"right"):(h=p,w=g==="end"?"top":"bottom");const m=y-c.top-c.bottom,v=E-c.left-c.right,S=_n(y-c[w],m),C=_n(E-c[h],v),b=!t.middlewareData.shift;let k=S,N=C;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(N=v),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(k=m),b&&!g){const O=Ke(c.left,0),$=Ke(c.right,0),F=Ke(c.top,0),Q=Ke(c.bottom,0);d?N=E-2*(O!==0||$!==0?O+$:Ke(c.left,c.right)):k=y-2*(F!==0||Q!==0?F+Q:Ke(c.top,c.bottom))}await a({...t,availableWidth:N,availableHeight:k});const _=await s.getDimensions(l.floating);return E!==_.width||y!==_.height?{reset:{rects:!0}}:{}}}};function nl(){return typeof window<"u"}function uo(e){return _h(e)?(e.nodeName||"").toLowerCase():"#document"}function qe(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function It(e){var t;return(t=(_h(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function _h(e){return nl()?e instanceof Node||e instanceof qe(e).Node:!1}function Et(e){return nl()?e instanceof Element||e instanceof qe(e).Element:!1}function _t(e){return nl()?e instanceof HTMLElement||e instanceof qe(e).HTMLElement:!1}function Jd(e){return!nl()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof qe(e).ShadowRoot}const Qw=new Set(["inline","contents"]);function yi(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Ct(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Qw.has(o)}const Kw=new Set(["table","td","th"]);function Gw(e){return Kw.has(uo(e))}const Yw=[":popover-open",":modal"];function rl(e){return Yw.some(t=>{try{return e.matches(t)}catch{return!1}})}const qw=["transform","translate","scale","rotate","perspective"],Xw=["transform","translate","scale","rotate","perspective","filter"],Zw=["paint","layout","strict","content"];function ac(e){const t=uc(),n=Et(e)?Ct(e):e;return qw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||Xw.some(r=>(n.willChange||"").includes(r))||Zw.some(r=>(n.contain||"").includes(r))}function Jw(e){let t=In(e);for(;_t(t)&&!no(t);){if(ac(t))return t;if(rl(t))return null;t=In(t)}return null}function uc(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const e1=new Set(["html","body","#document"]);function no(e){return e1.has(uo(e))}function Ct(e){return qe(e).getComputedStyle(e)}function ol(e){return Et(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function In(e){if(uo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Jd(e)&&e.host||It(e);return Jd(t)?t.host:t}function Ih(e){const t=In(e);return no(t)?e.ownerDocument?e.ownerDocument.body:e.body:_t(t)&&yi(t)?t:Ih(t)}function ri(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=Ih(e),i=o===((r=e.ownerDocument)==null?void 0:r.body),s=qe(o);if(i){const l=Ya(s);return t.concat(s,s.visualViewport||[],yi(o)?o:[],l&&n?ri(l):[])}return t.concat(o,ri(o,[],n))}function Ya(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Lh(e){const t=Ct(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=_t(e),i=o?e.offsetWidth:n,s=o?e.offsetHeight:r,l=As(n)!==i||As(r)!==s;return l&&(n=i,r=s),{width:n,height:r,$:l}}function cc(e){return Et(e)?e:e.contextElement}function Dr(e){const t=cc(e);if(!_t(t))return Mt(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:i}=Lh(t);let s=(i?As(n.width):n.width)/r,l=(i?As(n.height):n.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const t1=Mt(0);function Fh(e){const t=qe(e);return!uc()||!t.visualViewport?t1:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function n1(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==qe(e)?!1:t}function ar(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=cc(e);let s=Mt(1);t&&(r?Et(r)&&(s=Dr(r)):s=Dr(e));const l=n1(i,n,r)?Fh(i):Mt(0);let a=(o.left+l.x)/s.x,u=(o.top+l.y)/s.y,c=o.width/s.x,p=o.height/s.y;if(i){const g=qe(i),d=r&&Et(r)?qe(r):r;let E=g,y=Ya(E);for(;y&&r&&d!==E;){const w=Dr(y),h=y.getBoundingClientRect(),m=Ct(y),v=h.left+(y.clientLeft+parseFloat(m.paddingLeft))*w.x,S=h.top+(y.clientTop+parseFloat(m.paddingTop))*w.y;a*=w.x,u*=w.y,c*=w.x,p*=w.y,a+=v,u+=S,E=qe(y),y=Ya(E)}}return Ms({width:c,height:p,x:a,y:u})}function dc(e,t){const n=ol(e).scrollLeft;return t?t.left+n:ar(It(e)).left+n}function zh(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),o=r.left+t.scrollLeft-(n?0:dc(e,r)),i=r.top+t.scrollTop;return{x:o,y:i}}function r1(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const i=o==="fixed",s=It(r),l=t?rl(t.floating):!1;if(r===s||l&&i)return n;let a={scrollLeft:0,scrollTop:0},u=Mt(1);const c=Mt(0),p=_t(r);if((p||!p&&!i)&&((uo(r)!=="body"||yi(s))&&(a=ol(r)),_t(r))){const d=ar(r);u=Dr(r),c.x=d.x+r.clientLeft,c.y=d.y+r.clientTop}const g=s&&!p&&!i?zh(s,a,!0):Mt(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-a.scrollLeft*u.x+c.x+g.x,y:n.y*u.y-a.scrollTop*u.y+c.y+g.y}}function o1(e){return Array.from(e.getClientRects())}function i1(e){const t=It(e),n=ol(e),r=e.ownerDocument.body,o=Ke(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),i=Ke(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+dc(e);const l=-n.scrollTop;return Ct(r).direction==="rtl"&&(s+=Ke(t.clientWidth,r.clientWidth)-o),{width:o,height:i,x:s,y:l}}function s1(e,t){const n=qe(e),r=It(e),o=n.visualViewport;let i=r.clientWidth,s=r.clientHeight,l=0,a=0;if(o){i=o.width,s=o.height;const u=uc();(!u||u&&t==="fixed")&&(l=o.offsetLeft,a=o.offsetTop)}return{width:i,height:s,x:l,y:a}}const l1=new Set(["absolute","fixed"]);function a1(e,t){const n=ar(e,!0,t==="fixed"),r=n.top+e.clientTop,o=n.left+e.clientLeft,i=_t(e)?Dr(e):Mt(1),s=e.clientWidth*i.x,l=e.clientHeight*i.y,a=o*i.x,u=r*i.y;return{width:s,height:l,x:a,y:u}}function ef(e,t,n){let r;if(t==="viewport")r=s1(e,n);else if(t==="document")r=i1(It(e));else if(Et(t))r=a1(t,n);else{const o=Fh(e);r={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Ms(r)}function Dh(e,t){const n=In(e);return n===t||!Et(n)||no(n)?!1:Ct(n).position==="fixed"||Dh(n,t)}function u1(e,t){const n=t.get(e);if(n)return n;let r=ri(e,[],!1).filter(l=>Et(l)&&uo(l)!=="body"),o=null;const i=Ct(e).position==="fixed";let s=i?In(e):e;for(;Et(s)&&!no(s);){const l=Ct(s),a=ac(s);!a&&l.position==="fixed"&&(o=null),(i?!a&&!o:!a&&l.position==="static"&&!!o&&l1.has(o.position)||yi(s)&&!a&&Dh(e,s))?r=r.filter(c=>c!==s):o=l,s=In(s)}return t.set(e,r),r}function c1(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const s=[...n==="clippingAncestors"?rl(t)?[]:u1(t,this._c):[].concat(n),r],l=s[0],a=s.reduce((u,c)=>{const p=ef(t,c,o);return u.top=Ke(p.top,u.top),u.right=_n(p.right,u.right),u.bottom=_n(p.bottom,u.bottom),u.left=Ke(p.left,u.left),u},ef(t,l,o));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function d1(e){const{width:t,height:n}=Lh(e);return{width:t,height:n}}function f1(e,t,n){const r=_t(t),o=It(t),i=n==="fixed",s=ar(e,!0,i,t);let l={scrollLeft:0,scrollTop:0};const a=Mt(0);function u(){a.x=dc(o)}if(r||!r&&!i)if((uo(t)!=="body"||yi(o))&&(l=ol(t)),r){const d=ar(t,!0,i,t);a.x=d.x+t.clientLeft,a.y=d.y+t.clientTop}else o&&u();i&&!r&&o&&u();const c=o&&!r&&!i?zh(o,l):Mt(0),p=s.left+l.scrollLeft-a.x-c.x,g=s.top+l.scrollTop-a.y-c.y;return{x:p,y:g,width:s.width,height:s.height}}function Hl(e){return Ct(e).position==="static"}function tf(e,t){if(!_t(e)||Ct(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return It(e)===n&&(n=n.ownerDocument.body),n}function $h(e,t){const n=qe(e);if(rl(e))return n;if(!_t(e)){let o=In(e);for(;o&&!no(o);){if(Et(o)&&!Hl(o))return o;o=In(o)}return n}let r=tf(e,t);for(;r&&Gw(r)&&Hl(r);)r=tf(r,t);return r&&no(r)&&Hl(r)&&!ac(r)?n:r||Jw(e)||n}const p1=async function(e){const t=this.getOffsetParent||$h,n=this.getDimensions,r=await n(e.floating);return{reference:f1(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m1(e){return Ct(e).direction==="rtl"}const h1={convertOffsetParentRelativeRectToViewportRelativeRect:r1,getDocumentElement:It,getClippingRect:c1,getOffsetParent:$h,getElementRects:p1,getClientRects:o1,getDimensions:d1,getScale:Dr,isElement:Et,isRTL:m1};function Bh(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function g1(e,t){let n=null,r;const o=It(e);function i(){var l;clearTimeout(r),(l=n)==null||l.disconnect(),n=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),i();const u=e.getBoundingClientRect(),{left:c,top:p,width:g,height:d}=u;if(l||t(),!g||!d)return;const E=Ui(p),y=Ui(o.clientWidth-(c+g)),w=Ui(o.clientHeight-(p+d)),h=Ui(c),v={rootMargin:-E+"px "+-y+"px "+-w+"px "+-h+"px",threshold:Ke(0,_n(1,a))||1};let S=!0;function C(b){const k=b[0].intersectionRatio;if(k!==a){if(!S)return s();k?s(!1,k):r=setTimeout(()=>{s(!1,1e-7)},1e3)}k===1&&!Bh(u,e.getBoundingClientRect())&&s(),S=!1}try{n=new IntersectionObserver(C,{...v,root:o.ownerDocument})}catch{n=new IntersectionObserver(C,v)}n.observe(e)}return s(!0),i}function v1(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=r,u=cc(e),c=o||i?[...u?ri(u):[],...ri(t)]:[];c.forEach(h=>{o&&h.addEventListener("scroll",n,{passive:!0}),i&&h.addEventListener("resize",n)});const p=u&&l?g1(u,n):null;let g=-1,d=null;s&&(d=new ResizeObserver(h=>{let[m]=h;m&&m.target===u&&d&&(d.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var v;(v=d)==null||v.observe(t)})),n()}),u&&!a&&d.observe(u),d.observe(t));let E,y=a?ar(e):null;a&&w();function w(){const h=ar(e);y&&!Bh(y,h)&&n(),y=h,E=requestAnimationFrame(w)}return n(),()=>{var h;c.forEach(m=>{o&&m.removeEventListener("scroll",n),i&&m.removeEventListener("resize",n)}),p==null||p(),(h=d)==null||h.disconnect(),d=null,a&&cancelAnimationFrame(E)}}const y1=Ww,x1=Uw,w1=Dw,S1=Vw,E1=$w,nf=zw,C1=Hw,b1=(e,t,n)=>{const r=new Map,o={platform:h1,...n},i={...o.platform,_c:r};return Fw(e,t,{...o,platform:i})};var k1=typeof document<"u",P1=function(){},is=k1?x.useLayoutEffect:P1;function _s(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!_s(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;r--!==0;){const i=o[r];if(!(i==="_owner"&&e.$$typeof)&&!_s(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function Wh(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rf(e,t){const n=Wh(e);return Math.round(t*n)/n}function Vl(e){const t=x.useRef(e);return is(()=>{t.current=e}),t}function T1(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:i,floating:s}={},transform:l=!0,whileElementsMounted:a,open:u}=e,[c,p]=x.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=x.useState(r);_s(g,r)||d(r);const[E,y]=x.useState(null),[w,h]=x.useState(null),m=x.useCallback(T=>{T!==b.current&&(b.current=T,y(T))},[]),v=x.useCallback(T=>{T!==k.current&&(k.current=T,h(T))},[]),S=i||E,C=s||w,b=x.useRef(null),k=x.useRef(null),N=x.useRef(c),_=a!=null,O=Vl(a),$=Vl(o),F=Vl(u),Q=x.useCallback(()=>{if(!b.current||!k.current)return;const T={placement:t,strategy:n,middleware:g};$.current&&(T.platform=$.current),b1(b.current,k.current,T).then(R=>{const I={...R,isPositioned:F.current!==!1};M.current&&!_s(N.current,I)&&(N.current=I,gi.flushSync(()=>{p(I)}))})},[g,t,n,$,F]);is(()=>{u===!1&&N.current.isPositioned&&(N.current.isPositioned=!1,p(T=>({...T,isPositioned:!1})))},[u]);const M=x.useRef(!1);is(()=>(M.current=!0,()=>{M.current=!1}),[]),is(()=>{if(S&&(b.current=S),C&&(k.current=C),S&&C){if(O.current)return O.current(S,C,Q);Q()}},[S,C,Q,O,_]);const Y=x.useMemo(()=>({reference:b,floating:k,setReference:m,setFloating:v}),[m,v]),B=x.useMemo(()=>({reference:S,floating:C}),[S,C]),U=x.useMemo(()=>{const T={position:n,left:0,top:0};if(!B.floating)return T;const R=rf(B.floating,c.x),I=rf(B.floating,c.y);return l?{...T,transform:"translate("+R+"px, "+I+"px)",...Wh(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:R,top:I}},[n,l,B.floating,c.x,c.y]);return x.useMemo(()=>({...c,update:Q,refs:Y,elements:B,floatingStyles:U}),[c,Q,Y,B,U])}const N1=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:o}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?nf({element:r.current,padding:o}).fn(n):{}:r?nf({element:r,padding:o}).fn(n):{}}}},R1=(e,t)=>({...y1(e),options:[e,t]}),j1=(e,t)=>({...x1(e),options:[e,t]}),A1=(e,t)=>({...C1(e),options:[e,t]}),O1=(e,t)=>({...w1(e),options:[e,t]}),M1=(e,t)=>({...S1(e),options:[e,t]}),_1=(e,t)=>({...E1(e),options:[e,t]}),I1=(e,t)=>({...N1(e),options:[e,t]});var L1="Arrow",Uh=x.forwardRef((e,t)=>{const{children:n,width:r=10,height:o=5,...i}=e;return f.jsx(He.svg,{...i,ref:t,width:r,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:f.jsx("polygon",{points:"0,0 30,0 15,10"})})});Uh.displayName=L1;var F1=Uh;function z1(e){const[t,n]=x.useState(void 0);return Mn(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let s,l;if("borderBoxSize"in i){const a=i.borderBoxSize,u=Array.isArray(a)?a[0]:a;s=u.inlineSize,l=u.blockSize}else s=e.offsetWidth,l=e.offsetHeight;n({width:s,height:l})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var Hh="Popper",[Vh,Qh]=Js(Hh),[mC,Kh]=Vh(Hh),Gh="PopperAnchor",Yh=x.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...o}=e,i=Kh(Gh,n),s=x.useRef(null),l=St(t,s);return x.useEffect(()=>{i.onAnchorChange((r==null?void 0:r.current)||s.current)}),r?null:f.jsx(He.div,{...o,ref:l})});Yh.displayName=Gh;var fc="PopperContent",[D1,$1]=Vh(fc),qh=x.forwardRef((e,t)=>{var J,pr,Xt,Bn,Zt,mr;const{__scopePopper:n,side:r="bottom",sideOffset:o=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:a=!0,collisionBoundary:u=[],collisionPadding:c=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:d="optimized",onPlaced:E,...y}=e,w=Kh(fc,n),[h,m]=x.useState(null),v=St(t,Jt=>m(Jt)),[S,C]=x.useState(null),b=z1(S),k=(b==null?void 0:b.width)??0,N=(b==null?void 0:b.height)??0,_=r+(i!=="center"?"-"+i:""),O=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},$=Array.isArray(u)?u:[u],F=$.length>0,Q={padding:O,boundary:$.filter(W1),altBoundary:F},{refs:M,floatingStyles:Y,placement:B,isPositioned:U,middlewareData:T}=T1({strategy:"fixed",placement:_,whileElementsMounted:(...Jt)=>v1(...Jt,{animationFrame:d==="always"}),elements:{reference:w.anchor},middleware:[R1({mainAxis:o+N,alignmentAxis:s}),a&&j1({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?A1():void 0,...Q}),a&&O1({...Q}),M1({...Q,apply:({elements:Jt,rects:xi,availableWidth:ul,availableHeight:wi})=>{const{width:cl,height:po}=xi.reference,hr=Jt.floating.style;hr.setProperty("--radix-popper-available-width",`${ul}px`),hr.setProperty("--radix-popper-available-height",`${wi}px`),hr.setProperty("--radix-popper-anchor-width",`${cl}px`),hr.setProperty("--radix-popper-anchor-height",`${po}px`)}}),S&&I1({element:S,padding:l}),U1({arrowWidth:k,arrowHeight:N}),g&&_1({strategy:"referenceHidden",...Q})]}),[R,I]=Jh(B),H=On(E);Mn(()=>{U&&(H==null||H())},[U,H]);const z=(J=T.arrow)==null?void 0:J.x,K=(pr=T.arrow)==null?void 0:pr.y,q=((Xt=T.arrow)==null?void 0:Xt.centerOffset)!==0,[he,Te]=x.useState();return Mn(()=>{h&&Te(window.getComputedStyle(h).zIndex)},[h]),f.jsx("div",{ref:M.setFloating,"data-radix-popper-content-wrapper":"",style:{...Y,transform:U?Y.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(Bn=T.transformOrigin)==null?void 0:Bn.x,(Zt=T.transformOrigin)==null?void 0:Zt.y].join(" "),...((mr=T.hide)==null?void 0:mr.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:f.jsx(D1,{scope:n,placedSide:R,onArrowChange:C,arrowX:z,arrowY:K,shouldHideArrow:q,children:f.jsx(He.div,{"data-side":R,"data-align":I,...y,ref:v,style:{...y.style,animation:U?void 0:"none"}})})})});qh.displayName=fc;var Xh="PopperArrow",B1={top:"bottom",right:"left",bottom:"top",left:"right"},Zh=x.forwardRef(function(t,n){const{__scopePopper:r,...o}=t,i=$1(Xh,r),s=B1[i.placedSide];return f.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:f.jsx(F1,{...o,ref:n,style:{...o.style,display:"block"}})})});Zh.displayName=Xh;function W1(e){return e!==null}var U1=e=>({name:"transformOrigin",options:e,fn(t){var w,h,m;const{placement:n,rects:r,middlewareData:o}=t,s=((w=o.arrow)==null?void 0:w.centerOffset)!==0,l=s?0:e.arrowWidth,a=s?0:e.arrowHeight,[u,c]=Jh(n),p={start:"0%",center:"50%",end:"100%"}[c],g=(((h=o.arrow)==null?void 0:h.x)??0)+l/2,d=(((m=o.arrow)==null?void 0:m.y)??0)+a/2;let E="",y="";return u==="bottom"?(E=s?p:`${g}px`,y=`${-a}px`):u==="top"?(E=s?p:`${g}px`,y=`${r.floating.height+a}px`):u==="right"?(E=`${-a}px`,y=s?p:`${d}px`):u==="left"&&(E=`${r.floating.width+a}px`,y=s?p:`${d}px`),{data:{x:E,y}}}});function Jh(e){const[t,n="center"]=e.split("-");return[t,n]}var H1=Yh,V1=qh,Q1=Zh,[il,hC]=Js("Tooltip",[Qh]),pc=Qh(),eg="TooltipProvider",K1=700,of="tooltip.open",[G1,tg]=il(eg),ng=e=>{const{__scopeTooltip:t,delayDuration:n=K1,skipDelayDuration:r=300,disableHoverableContent:o=!1,children:i}=e,s=x.useRef(!0),l=x.useRef(!1),a=x.useRef(0);return x.useEffect(()=>{const u=a.current;return()=>window.clearTimeout(u)},[]),f.jsx(G1,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:x.useCallback(()=>{window.clearTimeout(a.current),s.current=!1},[]),onClose:x.useCallback(()=>{window.clearTimeout(a.current),a.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:x.useCallback(u=>{l.current=u},[]),disableHoverableContent:o,children:i})};ng.displayName=eg;var rg="Tooltip",[gC,sl]=il(rg),qa="TooltipTrigger",Y1=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=sl(qa,n),i=tg(qa,n),s=pc(n),l=x.useRef(null),a=St(t,l,o.onTriggerChange),u=x.useRef(!1),c=x.useRef(!1),p=x.useCallback(()=>u.current=!1,[]);return x.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),f.jsx(H1,{asChild:!0,...s,children:f.jsx(He.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...r,ref:a,onPointerMove:ye(e.onPointerMove,g=>{g.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ye(e.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ye(e.onPointerDown,()=>{o.open&&o.onClose(),u.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:ye(e.onFocus,()=>{u.current||o.onOpen()}),onBlur:ye(e.onBlur,o.onClose),onClick:ye(e.onClick,o.onClose)})})});Y1.displayName=qa;var q1="TooltipPortal",[vC,X1]=il(q1,{forceMount:void 0}),ro="TooltipContent",og=x.forwardRef((e,t)=>{const n=X1(ro,e.__scopeTooltip),{forceMount:r=n.forceMount,side:o="top",...i}=e,s=sl(ro,e.__scopeTooltip);return f.jsx(ec,{present:r||s.open,children:s.disableHoverableContent?f.jsx(ig,{side:o,...i,ref:t}):f.jsx(Z1,{side:o,...i,ref:t})})}),Z1=x.forwardRef((e,t)=>{const n=sl(ro,e.__scopeTooltip),r=tg(ro,e.__scopeTooltip),o=x.useRef(null),i=St(t,o),[s,l]=x.useState(null),{trigger:a,onClose:u}=n,c=o.current,{onPointerInTransitChange:p}=r,g=x.useCallback(()=>{l(null),p(!1)},[p]),d=x.useCallback((E,y)=>{const w=E.currentTarget,h={x:E.clientX,y:E.clientY},m=rS(h,w.getBoundingClientRect()),v=oS(h,m),S=iS(y.getBoundingClientRect()),C=lS([...v,...S]);l(C),p(!0)},[p]);return x.useEffect(()=>()=>g(),[g]),x.useEffect(()=>{if(a&&c){const E=w=>d(w,c),y=w=>d(w,a);return a.addEventListener("pointerleave",E),c.addEventListener("pointerleave",y),()=>{a.removeEventListener("pointerleave",E),c.removeEventListener("pointerleave",y)}}},[a,c,d,g]),x.useEffect(()=>{if(s){const E=y=>{const w=y.target,h={x:y.clientX,y:y.clientY},m=(a==null?void 0:a.contains(w))||(c==null?void 0:c.contains(w)),v=!sS(h,s);m?g():v&&(g(),u())};return document.addEventListener("pointermove",E),()=>document.removeEventListener("pointermove",E)}},[a,c,s,u,g]),f.jsx(ig,{...e,ref:i})}),[J1,eS]=il(rg,{isInside:!1}),tS=g0("TooltipContent"),ig=x.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,a=sl(ro,n),u=pc(n),{onClose:c}=a;return x.useEffect(()=>(document.addEventListener(of,c),()=>document.removeEventListener(of,c)),[c]),x.useEffect(()=>{if(a.trigger){const p=g=>{const d=g.target;d!=null&&d.contains(a.trigger)&&c()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[a.trigger,c]),f.jsx(Ju,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:c,children:f.jsxs(V1,{"data-state":a.stateAttribute,...u,...l,ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[f.jsx(tS,{children:r}),f.jsx(J1,{scope:n,isInside:!0,children:f.jsx(B0,{id:a.contentId,role:"tooltip",children:o||r})})]})})});og.displayName=ro;var sg="TooltipArrow",nS=x.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,o=pc(n);return eS(sg,n).isInside?null:f.jsx(Q1,{...o,...r,ref:t})});nS.displayName=sg;function rS(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),i=Math.abs(t.left-e.x);switch(Math.min(n,r,o,i)){case i:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function oS(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function iS(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}function sS(e,t){const{x:n,y:r}=e;let o=!1;for(let i=0,s=t.length-1;ir!=g>r&&n<(p-u)*(r-c)/(g-c)+u&&(o=!o)}return o}function lS(e){const t=e.slice();return t.sort((n,r)=>n.xr.x?1:n.yr.y?1:0),aS(t)}function aS(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r=2;){const i=t[t.length-1],s=t[t.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))t.pop();else break}t.push(o)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const o=e[r];for(;n.length>=2;){const i=n[n.length-1],s=n[n.length-2];if((i.x-s.x)*(o.y-s.y)>=(i.y-s.y)*(o.x-s.x))n.pop();else break}n.push(o)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var uS=ng,lg=og;const cS=uS,dS=x.forwardRef(({className:e,sideOffset:t=4,...n},r)=>f.jsx(lg,{ref:r,sideOffset:t,className:dr("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",e),...n}));dS.displayName=lg.displayName;var ll=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Yn,fn,$r,Ef,fS=(Ef=class extends ll{constructor(){super();X(this,Yn);X(this,fn);X(this,$r);D(this,$r,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,fn)||this.setEventListener(P(this,$r))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,fn))==null||t.call(this),D(this,fn,void 0))}setEventListener(t){var n;D(this,$r,t),(n=P(this,fn))==null||n.call(this),D(this,fn,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Yn)!==t&&(D(this,Yn,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Yn)=="boolean"?P(this,Yn):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Yn=new WeakMap,fn=new WeakMap,$r=new WeakMap,Ef),ag=new fS,pS={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},pn,ou,Cf,mS=(Cf=class{constructor(){X(this,pn,pS);X(this,ou,!1)}setTimeoutProvider(e){D(this,pn,e)}setTimeout(e,t){return P(this,pn).setTimeout(e,t)}clearTimeout(e){P(this,pn).clearTimeout(e)}setInterval(e,t){return P(this,pn).setInterval(e,t)}clearInterval(e){P(this,pn).clearInterval(e)}},pn=new WeakMap,ou=new WeakMap,Cf),Xa=new mS;function hS(e){setTimeout(e,0)}var gS=typeof window>"u"||"Deno"in globalThis;function mt(){}function vS(e,t){return typeof e=="function"?e(t):e}function yS(e){return typeof e=="number"&&e>=0&&e!==1/0}function xS(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Za(e,t){return typeof e=="function"?e(t):e}function wS(e,t){return typeof e=="function"?e(t):e}function sf(e,t){const{type:n="all",exact:r,fetchStatus:o,predicate:i,queryKey:s,stale:l}=e;if(s){if(r){if(t.queryHash!==mc(s,t.options))return!1}else if(!ii(t.queryKey,s))return!1}if(n!=="all"){const a=t.isActive();if(n==="active"&&!a||n==="inactive"&&a)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||o&&o!==t.state.fetchStatus||i&&!i(t))}function lf(e,t){const{exact:n,status:r,predicate:o,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(oi(t.options.mutationKey)!==oi(i))return!1}else if(!ii(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||o&&!o(t))}function mc(e,t){return((t==null?void 0:t.queryKeyHashFn)||oi)(e)}function oi(e){return JSON.stringify(e,(t,n)=>Ja(n)?Object.keys(n).sort().reduce((r,o)=>(r[o]=n[o],r),{}):n)}function ii(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>ii(e[n],t[n])):!1}var SS=Object.prototype.hasOwnProperty;function ug(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=af(e)&&af(t);if(!r&&!(Ja(e)&&Ja(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),l=s.length,a=r?new Array(l):{};let u=0;for(let c=0;c{Xa.setTimeout(t,e)})}function CS(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?ug(e,t):t}function bS(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function kS(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var hc=Symbol();function cg(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===hc?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function PS(e,t,n){let r=!1,o;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(o??(o=t()),r||(r=!0,o.aborted?n():o.addEventListener("abort",n,{once:!0})),o)}),e}var dg=(()=>{let e=()=>gS;return{isServer(){return e()},setIsServer(t){e=t}}})();function TS(){let e,t;const n=new Promise((o,i)=>{e=o,t=i});n.status="pending",n.catch(()=>{});function r(o){Object.assign(n,o),delete n.resolve,delete n.reject}return n.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},n.reject=o=>{r({status:"rejected",reason:o}),t(o)},n}var NS=hS;function RS(){let e=[],t=0,n=l=>{l()},r=l=>{l()},o=NS;const i=l=>{t?e.push(l):o(()=>{n(l)})},s=()=>{const l=e;e=[],l.length&&o(()=>{r(()=>{l.forEach(a=>{n(a)})})})};return{batch:l=>{let a;t++;try{a=l()}finally{t--,t||s()}return a},batchCalls:l=>(...a)=>{i(()=>{l(...a)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{o=l}}}var _e=RS(),Br,mn,Wr,bf,jS=(bf=class extends ll{constructor(){super();X(this,Br,!0);X(this,mn);X(this,Wr);D(this,Wr,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,mn)||this.setEventListener(P(this,Wr))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,mn))==null||t.call(this),D(this,mn,void 0))}setEventListener(t){var n;D(this,Wr,t),(n=P(this,mn))==null||n.call(this),D(this,mn,t(this.setOnline.bind(this)))}setOnline(t){P(this,Br)!==t&&(D(this,Br,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,Br)}},Br=new WeakMap,mn=new WeakMap,Wr=new WeakMap,bf),Is=new jS;function AS(e){return Math.min(1e3*2**e,3e4)}function fg(e){return(e??"online")==="online"?Is.isOnline():!0}var eu=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function pg(e){let t=!1,n=0,r;const o=TS(),i=()=>o.status!=="pending",s=y=>{var w;if(!i()){const h=new eu(y);g(h),(w=e.onCancel)==null||w.call(e,h)}},l=()=>{t=!0},a=()=>{t=!1},u=()=>ag.isFocused()&&(e.networkMode==="always"||Is.isOnline())&&e.canRun(),c=()=>fg(e.networkMode)&&e.canRun(),p=y=>{i()||(r==null||r(),o.resolve(y))},g=y=>{i()||(r==null||r(),o.reject(y))},d=()=>new Promise(y=>{var w;r=h=>{(i()||u())&&y(h)},(w=e.onPause)==null||w.call(e)}).then(()=>{var y;r=void 0,i()||(y=e.onContinue)==null||y.call(e)}),E=()=>{if(i())return;let y;const w=n===0?e.initialPromise:void 0;try{y=w??e.fn()}catch(h){y=Promise.reject(h)}Promise.resolve(y).then(p).catch(h=>{var b;if(i())return;const m=e.retry??(dg.isServer()?0:3),v=e.retryDelay??AS,S=typeof v=="function"?v(n,h):v,C=m===!0||typeof m=="number"&&nu()?void 0:d()).then(()=>{t?g(h):E()})})};return{promise:o,status:()=>o.status,cancel:s,continue:()=>(r==null||r(),o),cancelRetry:l,continueRetry:a,canStart:c,start:()=>(c()?E():d().then(E),o)}}var qn,kf,mg=(kf=class{constructor(){X(this,qn)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),yS(this.gcTime)&&D(this,qn,Xa.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(dg.isServer()?1/0:5*60*1e3))}clearGcTimeout(){P(this,qn)!==void 0&&(Xa.clearTimeout(P(this,qn)),D(this,qn,void 0))}},qn=new WeakMap,kf);function OS(e){return{onFetch:(t,n)=>{var c,p,g,d,E;const r=t.options,o=(g=(p=(c=t.fetchOptions)==null?void 0:c.meta)==null?void 0:p.fetchMore)==null?void 0:g.direction,i=((d=t.state.data)==null?void 0:d.pages)||[],s=((E=t.state.data)==null?void 0:E.pageParams)||[];let l={pages:[],pageParams:[]},a=0;const u=async()=>{let y=!1;const w=v=>{PS(v,()=>t.signal,()=>y=!0)},h=cg(t.options,t.fetchOptions),m=async(v,S,C)=>{if(y)return Promise.reject(t.signal.reason);if(S==null&&v.pages.length)return Promise.resolve(v);const k=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:S,direction:C?"backward":"forward",meta:t.options.meta};return w($),$})(),N=await h(k),{maxPages:_}=t.options,O=C?kS:bS;return{pages:O(v.pages,N,_),pageParams:O(v.pageParams,S,_)}};if(o&&i.length){const v=o==="backward",S=v?MS:cf,C={pages:i,pageParams:s},b=S(r,C);l=await m(C,b,v)}else{const v=e??i.length;do{const S=a===0?s[0]??r.initialPageParam:cf(r,l);if(a>0&&S==null)break;l=await m(l,S),a++}while(a{var y,w;return(w=(y=t.options).persister)==null?void 0:w.call(y,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function cf(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function MS(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Ur,Xn,Hr,tt,Zn,we,ai,Jn,Qe,hg,Ft,Pf,_S=(Pf=class extends mg{constructor(t){super();X(this,Qe);X(this,Ur);X(this,Xn);X(this,Hr);X(this,tt);X(this,Zn);X(this,we);X(this,ai);X(this,Jn);D(this,Jn,!1),D(this,ai,t.defaultOptions),this.setOptions(t.options),this.observers=[],D(this,Zn,t.client),D(this,tt,P(this,Zn).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,D(this,Xn,ff(this.options)),this.state=t.state??P(this,Xn),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return P(this,Ur)}get promise(){var t;return(t=P(this,we))==null?void 0:t.promise}setOptions(t){if(this.options={...P(this,ai),...t},t!=null&&t._type&&D(this,Ur,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ff(this.options);n.data!==void 0&&(this.setState(df(n.data,n.dataUpdatedAt)),D(this,Xn,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,tt).remove(this)}setData(t,n){const r=CS(this.state.data,t,this.options);return Ce(this,Qe,Ft).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ce(this,Qe,Ft).call(this,{type:"setState",state:t})}cancel(t){var r,o;const n=(r=P(this,we))==null?void 0:r.promise;return(o=P(this,we))==null||o.cancel(t),n?n.then(mt).catch(mt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return P(this,Xn)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>wS(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===hc||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Za(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!xS(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,we))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,tt).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,we)&&(P(this,Jn)||Ce(this,Qe,hg).call(this)?P(this,we).cancel({revert:!0}):P(this,we).cancelRetry()),this.scheduleGc()),P(this,tt).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ce(this,Qe,Ft).call(this,{type:"invalidate"})}async fetch(t,n){var u,c,p,g,d,E,y,w,h,m,v;if(this.state.fetchStatus!=="idle"&&((u=P(this,we))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,we))return P(this,we).continueRetry(),P(this,we).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(C=>C.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,o=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(D(this,Jn,!0),r.signal)})},i=()=>{const S=cg(this.options,n),b=(()=>{const k={client:P(this,Zn),queryKey:this.queryKey,meta:this.meta};return o(k),k})();return D(this,Jn,!1),this.options.persister?this.options.persister(S,b,this):S(b)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Zn),state:this.state,fetchFn:i};return o(S),S})(),a=P(this,Ur)==="infinite"?OS(this.options.pages):this.options.behavior;a==null||a.onFetch(l,this),D(this,Hr,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((c=l.fetchOptions)==null?void 0:c.meta))&&Ce(this,Qe,Ft).call(this,{type:"fetch",meta:(p=l.fetchOptions)==null?void 0:p.meta}),D(this,we,pg({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof eu&&S.revert&&this.setState({...P(this,Hr),fetchStatus:"idle"}),r.abort()},onFail:(S,C)=>{Ce(this,Qe,Ft).call(this,{type:"failed",failureCount:S,error:C})},onPause:()=>{Ce(this,Qe,Ft).call(this,{type:"pause"})},onContinue:()=>{Ce(this,Qe,Ft).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await P(this,we).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(d=(g=P(this,tt).config).onSuccess)==null||d.call(g,S,this),(y=(E=P(this,tt).config).onSettled)==null||y.call(E,S,this.state.error,this),S}catch(S){if(S instanceof eu){if(S.silent)return P(this,we).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw Ce(this,Qe,Ft).call(this,{type:"error",error:S}),(h=(w=P(this,tt).config).onError)==null||h.call(w,S,this),(v=(m=P(this,tt).config).onSettled)==null||v.call(m,this.state.data,S,this),S}finally{this.scheduleGc()}}},Ur=new WeakMap,Xn=new WeakMap,Hr=new WeakMap,tt=new WeakMap,Zn=new WeakMap,we=new WeakMap,ai=new WeakMap,Jn=new WeakMap,Qe=new WeakSet,hg=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ft=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...IS(r.data,this.options),fetchMeta:t.meta??null};case"success":const o={...r,...df(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return D(this,Hr,t.manual?o:void 0),o;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),_e.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,tt).notify({query:this,type:"updated",action:t})})},Pf);function IS(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fg(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function df(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ff(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var ui,Pt,je,er,Tt,ln,Tf,LS=(Tf=class extends mg{constructor(t){super();X(this,Tt);X(this,ui);X(this,Pt);X(this,je);X(this,er);D(this,ui,t.client),this.mutationId=t.mutationId,D(this,je,t.mutationCache),D(this,Pt,[]),this.state=t.state||FS(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,Pt).includes(t)||(P(this,Pt).push(t),this.clearGcTimeout(),P(this,je).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){D(this,Pt,P(this,Pt).filter(n=>n!==t)),this.scheduleGc(),P(this,je).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,Pt).length||(this.state.status==="pending"?this.scheduleGc():P(this,je).remove(this))}continue(){var t;return((t=P(this,er))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,l,a,u,c,p,g,d,E,y,w,h,m,v,S,C,b,k;const n=()=>{Ce(this,Tt,ln).call(this,{type:"continue"})},r={client:P(this,ui),meta:this.options.meta,mutationKey:this.options.mutationKey};D(this,er,pg({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(N,_)=>{Ce(this,Tt,ln).call(this,{type:"failed",failureCount:N,error:_})},onPause:()=>{Ce(this,Tt,ln).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,je).canRun(this)}));const o=this.state.status==="pending",i=!P(this,er).canStart();try{if(o)n();else{Ce(this,Tt,ln).call(this,{type:"pending",variables:t,isPaused:i}),P(this,je).config.onMutate&&await P(this,je).config.onMutate(t,this,r);const _=await((l=(s=this.options).onMutate)==null?void 0:l.call(s,t,r));_!==this.state.context&&Ce(this,Tt,ln).call(this,{type:"pending",context:_,variables:t,isPaused:i})}const N=await P(this,er).start();return await((u=(a=P(this,je).config).onSuccess)==null?void 0:u.call(a,N,t,this.state.context,this,r)),await((p=(c=this.options).onSuccess)==null?void 0:p.call(c,N,t,this.state.context,r)),await((d=(g=P(this,je).config).onSettled)==null?void 0:d.call(g,N,null,this.state.variables,this.state.context,this,r)),await((y=(E=this.options).onSettled)==null?void 0:y.call(E,N,null,t,this.state.context,r)),Ce(this,Tt,ln).call(this,{type:"success",data:N}),N}catch(N){try{await((h=(w=P(this,je).config).onError)==null?void 0:h.call(w,N,t,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((v=(m=this.options).onError)==null?void 0:v.call(m,N,t,this.state.context,r))}catch(_){Promise.reject(_)}try{await((C=(S=P(this,je).config).onSettled)==null?void 0:C.call(S,void 0,N,this.state.variables,this.state.context,this,r))}catch(_){Promise.reject(_)}try{await((k=(b=this.options).onSettled)==null?void 0:k.call(b,void 0,N,t,this.state.context,r))}catch(_){Promise.reject(_)}throw Ce(this,Tt,ln).call(this,{type:"error",error:N}),N}finally{P(this,je).runNext(this)}}},ui=new WeakMap,Pt=new WeakMap,je=new WeakMap,er=new WeakMap,Tt=new WeakSet,ln=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),_e.batch(()=>{P(this,Pt).forEach(r=>{r.onMutationUpdate(t)}),P(this,je).notify({mutation:this,type:"updated",action:t})})},Tf);function FS(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var $t,ht,ci,Nf,zS=(Nf=class extends ll{constructor(t={}){super();X(this,$t);X(this,ht);X(this,ci);this.config=t,D(this,$t,new Set),D(this,ht,new Map),D(this,ci,0)}build(t,n,r){const o=new LS({client:t,mutationCache:this,mutationId:++Ei(this,ci)._,options:t.defaultMutationOptions(n),state:r});return this.add(o),o}add(t){P(this,$t).add(t);const n=Hi(t);if(typeof n=="string"){const r=P(this,ht).get(n);r?r.push(t):P(this,ht).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,$t).delete(t)){const n=Hi(t);if(typeof n=="string"){const r=P(this,ht).get(n);if(r)if(r.length>1){const o=r.indexOf(t);o!==-1&&r.splice(o,1)}else r[0]===t&&P(this,ht).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Hi(t);if(typeof n=="string"){const r=P(this,ht).get(n),o=r==null?void 0:r.find(i=>i.state.status==="pending");return!o||o===t}else return!0}runNext(t){var r;const n=Hi(t);if(typeof n=="string"){const o=(r=P(this,ht).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){_e.batch(()=>{P(this,$t).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,$t).clear(),P(this,ht).clear()})}getAll(){return Array.from(P(this,$t))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lf(n,r))}findAll(t={}){return this.getAll().filter(n=>lf(t,n))}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return _e.batch(()=>Promise.all(t.map(n=>n.continue().catch(mt))))}},$t=new WeakMap,ht=new WeakMap,ci=new WeakMap,Nf);function Hi(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Nt,Rf,DS=(Rf=class extends ll{constructor(t={}){super();X(this,Nt);this.config=t,D(this,Nt,new Map)}build(t,n,r){const o=n.queryKey,i=n.queryHash??mc(o,n);let s=this.get(i);return s||(s=new _S({client:t,queryKey:o,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(o)}),this.add(s)),s}add(t){P(this,Nt).has(t.queryHash)||(P(this,Nt).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Nt).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Nt).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){_e.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Nt).get(t)}getAll(){return[...P(this,Nt).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>sf(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>sf(t,r)):n}notify(t){_e.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){_e.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){_e.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Nt=new WeakMap,Rf),de,hn,gn,Vr,Qr,vn,Kr,Gr,jf,$S=(jf=class{constructor(e={}){X(this,de);X(this,hn);X(this,gn);X(this,Vr);X(this,Qr);X(this,vn);X(this,Kr);X(this,Gr);D(this,de,e.queryCache||new DS),D(this,hn,e.mutationCache||new zS),D(this,gn,e.defaultOptions||{}),D(this,Vr,new Map),D(this,Qr,new Map),D(this,vn,0)}mount(){Ei(this,vn)._++,P(this,vn)===1&&(D(this,Kr,ag.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onFocus())})),D(this,Gr,Is.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,de).onOnline())})))}unmount(){var e,t;Ei(this,vn)._--,P(this,vn)===0&&((e=P(this,Kr))==null||e.call(this),D(this,Kr,void 0),(t=P(this,Gr))==null||t.call(this),D(this,Gr,void 0))}isFetching(e){return P(this,de).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,hn).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,de).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Za(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,de).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),o=P(this,de).get(r.queryHash),i=o==null?void 0:o.state.data,s=vS(t,i);if(s!==void 0)return P(this,de).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return _e.batch(()=>P(this,de).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,de).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,de);_e.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,de);return _e.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=_e.batch(()=>P(this,de).findAll(e).map(o=>o.cancel(n)));return Promise.all(r).then(mt).catch(mt)}invalidateQueries(e,t={}){return _e.batch(()=>(P(this,de).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=_e.batch(()=>P(this,de).findAll(e).filter(o=>!o.isDisabled()&&!o.isStatic()).map(o=>{let i=o.fetch(void 0,n);return n.throwOnError||(i=i.catch(mt)),o.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(mt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,de).build(this,t);return n.isStaleByTime(Za(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(mt).catch(mt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(mt).catch(mt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Is.isOnline()?P(this,hn).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,de)}getMutationCache(){return P(this,hn)}getDefaultOptions(){return P(this,gn)}setDefaultOptions(e){D(this,gn,e)}setQueryDefaults(e,t){P(this,Vr).set(oi(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,Vr).values()],n={};return t.forEach(r=>{ii(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Qr).set(oi(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Qr).values()],n={};return t.forEach(r=>{ii(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,gn).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=mc(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===hc&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,gn).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,de).clear(),P(this,hn).clear()}},de=new WeakMap,hn=new WeakMap,gn=new WeakMap,Vr=new WeakMap,Qr=new WeakMap,vn=new WeakMap,Kr=new WeakMap,Gr=new WeakMap,jf),BS=x.createContext(void 0),WS=({client:e,children:t})=>(x.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),f.jsx(BS.Provider,{value:e,children:t}));/** * @remix-run/router v1.23.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function si(){return si=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function gg(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function HS(){return Math.random().toString(36).substr(2,8)}function mf(e,t){return{usr:e.state,key:e.key,idx:t}}function tu(e,t,n,r){return n===void 0&&(n=null),si({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?co(t):t,{state:n,key:t&&t.key||r||HS()})}function Ls(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function co(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function VS(e,t,n,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:i=!1}=r,s=o.history,l=wn.Pop,a=null,u=c();u==null&&(u=0,s.replaceState(si({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function p(){l=wn.Pop;let w=c(),h=w==null?null:w-u;u=w,a&&a({action:l,location:y.location,delta:h})}function g(w,h){l=wn.Push;let m=tu(y.location,w,h);u=c()+1;let v=mf(m,u),S=y.createHref(m);try{s.pushState(v,"",S)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;o.location.assign(S)}i&&a&&a({action:l,location:y.location,delta:1})}function d(w,h){l=wn.Replace;let m=tu(y.location,w,h);u=c();let v=mf(m,u),S=y.createHref(m);s.replaceState(v,"",S),i&&a&&a({action:l,location:y.location,delta:0})}function E(w){let h=o.location.origin!=="null"?o.location.origin:o.location.href,m=typeof w=="string"?w:Ls(w);return m=m.replace(/ $/,"%20"),me(h,"No window.location.(origin|href) available to create URL for href: "+m),new URL(m,h)}let y={get action(){return l},get location(){return e(o,s)},listen(w){if(a)throw new Error("A history only accepts one active listener");return o.addEventListener(pf,p),a=w,()=>{o.removeEventListener(pf,p),a=null}},createHref(w){return t(o,w)},createURL:E,encodeLocation(w){let h=E(w);return{pathname:h.pathname,search:h.search,hash:h.hash}},push:g,replace:d,go(w){return s.go(w)}};return y}var hf;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(hf||(hf={}));function QS(e,t,n){return n===void 0&&(n="/"),KS(e,t,n)}function KS(e,t,n,r){let o=typeof t=="string"?co(t):t,i=gc(o.pathname||"/",n);if(i==null)return null;let s=vg(e);GS(s);let l=null;for(let a=0;l==null&&a{let a={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};a.relativePath.startsWith("/")&&(me(a.relativePath.startsWith(r),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(r.length));let u=Rn([r,a.relativePath]),c=n.concat(a);i.children&&i.children.length>0&&(me(i.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),vg(i.children,t,c,u)),!(i.path==null&&!i.index)&&t.push({path:u,score:tE(u,i.index),routesMeta:c})};return e.forEach((i,s)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,s);else for(let a of yg(i.path))o(i,s,a)}),t}function yg(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let s=yg(r.join("/")),l=[];return l.push(...s.map(a=>a===""?i:[i,a].join("/"))),o&&l.push(...s),l.map(a=>e.startsWith("/")&&a===""?"/":a)}function GS(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:nE(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const YS=/^:[\w-]+$/,qS=3,XS=2,ZS=1,JS=10,eE=-2,gf=e=>e==="*";function tE(e,t){let n=e.split("/"),r=n.length;return n.some(gf)&&(r+=eE),t&&(r+=XS),n.filter(o=>!gf(o)).reduce((o,i)=>o+(YS.test(i)?qS:i===""?ZS:JS),r)}function nE(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function rE(e,t,n){let{routesMeta:r}=e,o={},i="/",s=[];for(let l=0;l{let{paramName:g,isOptional:d}=c;if(g==="*"){let y=l[p]||"";s=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const E=l[p];return d&&!E?u[g]=void 0:u[g]=(E||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:e}}function iE(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),gg(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,l,a)=>(r.push({paramName:l,isOptional:a!=null}),a?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function sE(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return gg(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function gc(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function lE(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?co(e):e;return{pathname:n?n.startsWith("/")?n:aE(n,t):t,search:dE(r),hash:fE(o)}}function aE(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function Ql(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function uE(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function vc(e,t){let n=uE(e);return t?n.map((r,o)=>o===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function yc(e,t,n,r){r===void 0&&(r=!1);let o;typeof e=="string"?o=co(e):(o=si({},e),me(!o.pathname||!o.pathname.includes("?"),Ql("?","pathname","search",o)),me(!o.pathname||!o.pathname.includes("#"),Ql("#","pathname","hash",o)),me(!o.search||!o.search.includes("#"),Ql("#","search","hash",o)));let i=e===""||o.pathname==="",s=i?"/":o.pathname,l;if(s==null)l=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),p-=1;o.pathname=g.join("/")}l=p>=0?t[p]:"/"}let a=lE(o,l),u=s&&s!=="/"&&s.endsWith("/"),c=(i||s===".")&&n.endsWith("/");return!a.pathname.endsWith("/")&&(u||c)&&(a.pathname+="/"),a}const Rn=e=>e.join("/").replace(/\/\/+/g,"/"),cE=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),dE=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,fE=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function pE(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const xg=["post","put","patch","delete"];new Set(xg);const mE=["get",...xg];new Set(mE);/** * React Router v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function li(){return li=Object.assign?Object.assign.bind():function(e){for(var t=1;t{l.current=!0}),x.useCallback(function(u,c){if(c===void 0&&(c={}),!l.current)return;if(typeof u=="number"){r.go(u);return}let p=yc(u,JSON.parse(s),i,c.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Rn([t,p.pathname])),(c.replace?r.replace:r.push)(p,c.state,c)},[t,r,s,i,e])}function Cg(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=x.useContext(Dn),{matches:o}=x.useContext($n),{pathname:i}=fr(),s=JSON.stringify(vc(o,r.v7_relativeSplatPath));return x.useMemo(()=>yc(e,JSON.parse(s),i,n==="path"),[e,s,i,n])}function yE(e,t){return xE(e,t)}function xE(e,t,n,r){fo()||me(!1);let{navigator:o}=x.useContext(Dn),{matches:i}=x.useContext($n),s=i[i.length-1],l=s?s.params:{};s&&s.pathname;let a=s?s.pathnameBase:"/";s&&s.route;let u=fr(),c;if(t){var p;let w=typeof t=="string"?co(t):t;a==="/"||(p=w.pathname)!=null&&p.startsWith(a)||me(!1),c=w}else c=u;let g=c.pathname||"/",d=g;if(a!=="/"){let w=a.replace(/^\//,"").split("/");d="/"+g.replace(/^\//,"").split("/").slice(w.length).join("/")}let E=QS(e,{pathname:d}),y=bE(E&&E.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Rn([a,o.encodeLocation?o.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?a:Rn([a,o.encodeLocation?o.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),i,n,r);return t&&y?x.createElement(al.Provider,{value:{location:li({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:wn.Pop}},y):y}function wE(){let e=NE(),t=pE(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,o={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return x.createElement(x.Fragment,null,x.createElement("h2",null,"Unexpected Application Error!"),x.createElement("h3",{style:{fontStyle:"italic"}},t),n?x.createElement("pre",{style:o},n):null,null)}const SE=x.createElement(wE,null);class EE extends x.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?x.createElement($n.Provider,{value:this.props.routeContext},x.createElement(wg.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function CE(e){let{routeContext:t,match:n,children:r}=e,o=x.useContext(xc);return o&&o.static&&o.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=n.route.id),x.createElement($n.Provider,{value:t},r)}function bE(e,t,n,r){var o;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,l=(o=n)==null?void 0:o.errors;if(l!=null){let c=s.findIndex(p=>p.route.id&&(l==null?void 0:l[p.route.id])!==void 0);c>=0||me(!1),s=s.slice(0,Math.min(s.length,c+1))}let a=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,p,g)=>{let d,E=!1,y=null,w=null;n&&(d=l&&p.route.id?l[p.route.id]:void 0,y=p.route.errorElement||SE,a&&(u<0&&g===0?(jE("route-fallback"),E=!0,w=null):u===g&&(E=!0,w=p.route.hydrateFallbackElement||null)));let h=t.concat(s.slice(0,g+1)),m=()=>{let v;return d?v=y:E?v=w:p.route.Component?v=x.createElement(p.route.Component,null):p.route.element?v=p.route.element:v=c,x.createElement(CE,{match:p,routeContext:{outlet:c,matches:h,isDataRoute:n!=null},children:v})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?x.createElement(EE,{location:n.location,revalidation:n.revalidation,component:y,error:d,children:m(),routeContext:{outlet:null,matches:h,isDataRoute:!0}}):m()},null)}var bg=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(bg||{}),kg=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(kg||{});function kE(e){let t=x.useContext(xc);return t||me(!1),t}function PE(e){let t=x.useContext(hE);return t||me(!1),t}function TE(e){let t=x.useContext($n);return t||me(!1),t}function Pg(e){let t=TE(),n=t.matches[t.matches.length-1];return n.route.id||me(!1),n.route.id}function NE(){var e;let t=x.useContext(wg),n=PE(),r=Pg();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function RE(){let{router:e}=kE(bg.UseNavigateStable),t=Pg(kg.UseNavigateStable),n=x.useRef(!1);return Sg(()=>{n.current=!0}),x.useCallback(function(o,i){i===void 0&&(i={}),n.current&&(typeof o=="number"?e.navigate(o):e.navigate(o,li({fromRouteId:t},i)))},[e,t])}const vf={};function jE(e,t,n){vf[e]||(vf[e]=!0)}function AE(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function OE(e){let{to:t,replace:n,state:r,relative:o}=e;fo()||me(!1);let{future:i,static:s}=x.useContext(Dn),{matches:l}=x.useContext($n),{pathname:a}=fr(),u=Eg(),c=yc(t,vc(l,i.v7_relativeSplatPath),a,o==="path"),p=JSON.stringify(c);return x.useEffect(()=>u(JSON.parse(p),{replace:n,state:r,relative:o}),[u,p,o,n,r]),null}function ss(e){me(!1)}function ME(e){let{basename:t="/",children:n=null,location:r,navigationType:o=wn.Pop,navigator:i,static:s=!1,future:l}=e;fo()&&me(!1);let a=t.replace(/^\/*/,"/"),u=x.useMemo(()=>({basename:a,navigator:i,static:s,future:li({v7_relativeSplatPath:!1},l)}),[a,l,i,s]);typeof r=="string"&&(r=co(r));let{pathname:c="/",search:p="",hash:g="",state:d=null,key:E="default"}=r,y=x.useMemo(()=>{let w=gc(c,a);return w==null?null:{location:{pathname:w,search:p,hash:g,state:d,key:E},navigationType:o}},[a,c,p,g,d,E,o]);return y==null?null:x.createElement(Dn.Provider,{value:u},x.createElement(al.Provider,{children:n,value:y}))}function _E(e){let{children:t,location:n}=e;return yE(nu(t),n)}new Promise(()=>{});function nu(e,t){t===void 0&&(t=[]);let n=[];return x.Children.forEach(e,(r,o)=>{if(!x.isValidElement(r))return;let i=[...t,o];if(r.type===x.Fragment){n.push.apply(n,nu(r.props.children,i));return}r.type!==ss&&me(!1),!r.props.index||!r.props.children||me(!1);let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=nu(r.props.children,i)),n.push(s)}),n}/** * React Router DOM v6.30.1 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */function ru(){return ru=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[o]=e[o]);return n}function LE(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FE(e,t){return e.button===0&&(!t||t==="_self")&&!LE(e)}const zE=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],DE="6";try{window.__reactRouterVersion=DE}catch{}const $E="startTransition",yf=Wf[$E];function BE(e){let{basename:t,children:n,future:r,window:o}=e,i=x.useRef();i.current==null&&(i.current=US({window:o,v5Compat:!0}));let s=i.current,[l,a]=x.useState({action:s.action,location:s.location}),{v7_startTransition:u}=r||{},c=x.useCallback(p=>{u&&yf?yf(()=>a(p)):a(p)},[a,u]);return x.useLayoutEffect(()=>s.listen(c),[s,c]),x.useEffect(()=>AE(r),[r]),x.createElement(ME,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:s,future:r})}const WE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",UE=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Kl=x.forwardRef(function(t,n){let{onClick:r,relative:o,reloadDocument:i,replace:s,state:l,target:a,to:u,preventScrollReset:c,viewTransition:p}=t,g=IE(t,zE),{basename:d}=x.useContext(Dn),E,y=!1;if(typeof u=="string"&&UE.test(u)&&(E=u,WE))try{let v=new URL(window.location.href),S=u.startsWith("//")?new URL(v.protocol+u):new URL(u),C=gc(S.pathname,d);S.origin===v.origin&&C!=null?u=C+S.search+S.hash:y=!0}catch{}let w=gE(u,{relative:o}),h=HE(u,{replace:s,state:l,target:a,preventScrollReset:c,relative:o,viewTransition:p});function m(v){r&&r(v),v.defaultPrevented||h(v)}return x.createElement("a",ru({},g,{href:E||w,onClick:y||i?r:m,ref:n,target:a}))});var xf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(xf||(xf={}));var wf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(wf||(wf={}));function HE(e,t){let{target:n,replace:r,state:o,preventScrollReset:i,relative:s,viewTransition:l}=t===void 0?{}:t,a=Eg(),u=fr(),c=Cg(e,{relative:s});return x.useCallback(p=>{if(FE(p,n)){p.preventDefault();let g=r!==void 0?r:Ls(u)===Ls(c);a(e,{replace:g,state:o,preventScrollReset:i,relative:s,viewTransition:l})}},[u,a,c,r,o,n,e,i,s,l])}const VE=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState(!1),o=fr();x.useEffect(()=>{const s=()=>t(window.scrollY>60);return window.addEventListener("scroll",s,{passive:!0}),()=>window.removeEventListener("scroll",s)},[]);const i=[{label:"About",href:"#about"},{label:"Investment Services",href:"/services"},{label:"Governance",href:"#governance"},{label:"Financial Results",href:"#results"},{label:"Contact",href:"#contact"}];return f.jsxs("header",{className:`fixed top-0 left-0 right-0 z-50 transition-all duration-300 ${e?"bg-white border-b border-[#E6EAF0]":"bg-transparent"}`,style:{height:"64px"},children:[f.jsxs("div",{className:"mx-auto flex items-center justify-between h-full px-6",style:{maxWidth:"1160px"},children:[f.jsxs(Kl,{to:"/services",className:"flex flex-col justify-center",style:{textDecoration:"none"},children:[f.jsx("span",{className:"block",style:{fontSize:"14px",fontWeight:700,letterSpacing:"0.12em",textTransform:"uppercase",color:e?"#0A1A2F":"#ffffff",lineHeight:1},children:"ALMANZA"}),f.jsx("span",{className:"block",style:{fontSize:"9px",fontWeight:500,letterSpacing:"0.18em",textTransform:"uppercase",color:e?"#6B7280":"rgba(255,255,255,0.75)",marginTop:"3px",lineHeight:1},children:"INVESTMENT COMPANY"})]}),f.jsx("nav",{className:"hidden md:flex items-center gap-8",children:i.map(s=>f.jsx(Kl,{to:s.href,style:{fontSize:"12px",fontWeight:500,letterSpacing:"0.05em",textTransform:"uppercase",color:s.href===o.pathname?e?"#0A1A2F":"#fff":e?"#374151":"rgba(255,255,255,0.82)",textDecoration:"none",transition:"color 0.2s",borderBottom:s.href===o.pathname?e?"1px solid #0A1A2F":"1px solid rgba(255,255,255,0.6)":"none",paddingBottom:"2px"},children:s.label},s.label))}),f.jsxs("button",{className:"md:hidden flex flex-col gap-1.5 p-2",onClick:()=>r(!n),"aria-label":"Toggle menu",children:[f.jsx("span",{className:`block w-5 h-px transition-all ${e?"bg-[#0A1A2F]":"bg-white"}`}),f.jsx("span",{className:`block w-5 h-px transition-all ${e?"bg-[#0A1A2F]":"bg-white"}`}),f.jsx("span",{className:`block w-3 h-px transition-all ${e?"bg-[#0A1A2F]":"bg-white"}`})]})]}),n&&f.jsx("div",{className:"md:hidden bg-white border-b border-[#E6EAF0]",children:f.jsx("div",{className:"px-6 py-4 flex flex-col gap-4",children:i.map(s=>f.jsx(Kl,{to:s.href,onClick:()=>r(!1),style:{fontSize:"12px",fontWeight:500,letterSpacing:"0.05em",textTransform:"uppercase",color:"#374151",textDecoration:"none"},children:s.label},s.label))})})]})},QE="/assets/hero-kuwait-BABrE1am.jpg",KE=()=>f.jsxs("section",{className:"relative w-full overflow-hidden",style:{height:"100vh",minHeight:"640px"},children:[f.jsx("div",{className:"absolute inset-0 bg-cover bg-center bg-no-repeat",style:{backgroundImage:`url(${QE})`}}),f.jsx("div",{className:"absolute inset-0",style:{background:"rgba(255,255,255,0.55)"}}),f.jsx("div",{className:"absolute inset-0",style:{background:"linear-gradient(to bottom, rgba(10,26,47,0.18) 0%, rgba(10,26,47,0.08) 60%, rgba(10,26,47,0.22) 100%)"}}),f.jsxs("div",{className:"relative h-full flex flex-col justify-end pb-20 px-6",style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("div",{className:"mb-6",children:f.jsx("span",{style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(10,26,47,0.65)",borderLeft:"2px solid #0A1A2F",paddingLeft:"10px"},children:"Investment Services — Almanza Investment Company"})}),f.jsx("h1",{style:{fontSize:"clamp(24px, 3.5vw, 40px)",fontWeight:600,color:"#0A1A2F",letterSpacing:"-0.02em",lineHeight:1.15,maxWidth:"680px",marginBottom:"18px"},children:"Mandated Investment Programs"}),f.jsx("p",{style:{fontSize:"15px",fontWeight:400,color:"#374151",lineHeight:1.7,maxWidth:"560px",marginBottom:"36px"},children:"Structured investment solutions delivered through defined mandates, disciplined execution, and governance oversight."}),f.jsxs("div",{className:"flex flex-wrap gap-3",children:[f.jsx("button",{onClick:()=>{var e;(e=document.getElementById("programs"))==null||e.scrollIntoView({behavior:"smooth"})},style:{fontSize:"12px",fontWeight:600,letterSpacing:"0.07em",textTransform:"uppercase",padding:"13px 28px",background:"#0A1A2F",color:"#ffffff",border:"none",cursor:"pointer",transition:"opacity 0.2s",minWidth:"44px",minHeight:"44px"},onMouseEnter:e=>e.currentTarget.style.opacity="0.88",onMouseLeave:e=>e.currentTarget.style.opacity="1",children:"Explore Investment Programs"}),f.jsx("button",{onClick:()=>{var e;(e=document.getElementById("contact"))==null||e.scrollIntoView({behavior:"smooth"})},style:{fontSize:"12px",fontWeight:600,letterSpacing:"0.07em",textTransform:"uppercase",padding:"13px 28px",background:"transparent",color:"#0A1A2F",border:"1.5px solid #0A1A2F",cursor:"pointer",transition:"background 0.2s, color 0.2s",minWidth:"44px",minHeight:"44px"},onMouseEnter:e=>{e.currentTarget.style.background="#0A1A2F",e.currentTarget.style.color="#fff"},onMouseLeave:e=>{e.currentTarget.style.background="transparent",e.currentTarget.style.color="#0A1A2F"},children:"Contact Investment Team"})]})]}),f.jsxs("div",{className:"absolute bottom-8 right-8 flex flex-col items-center gap-2",style:{opacity:.55},children:[f.jsx("span",{style:{fontSize:"10px",fontWeight:500,letterSpacing:"0.12em",textTransform:"uppercase",color:"#0A1A2F",writingMode:"vertical-rl"},children:"Scroll"}),f.jsx("div",{style:{width:"1px",height:"40px",background:"linear-gradient(to bottom, #0A1A2F, transparent)"}})]})]}),GE=()=>f.jsx("section",{className:"w-full",style:{padding:"56px 24px",background:"#fff"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("div",{className:"almanza-divider mb-6"}),f.jsxs("div",{className:"flex items-center justify-between mb-8",children:[f.jsx("span",{className:"almanza-label",children:"01 — Investment Platform"}),f.jsx("span",{className:"almanza-label",style:{opacity:.5},children:"Almanza Investment Company · State of Kuwait"})]}),f.jsxs("div",{className:"grid gap-12",style:{gridTemplateColumns:"1fr 1fr"},children:[f.jsxs("div",{children:[f.jsx("h2",{className:"almanza-section-title mb-5",style:{fontSize:"22px",letterSpacing:"-0.02em"},children:"Investment Platform Positioning"}),f.jsx("p",{className:"almanza-body",style:{marginBottom:"16px"},children:"Almanza Investment Company delivers structured investment programs across asset classes and markets. Each program is defined by a formal mandate, executed through disciplined processes, and governed through internal oversight structures."}),f.jsx("p",{className:"almanza-body",children:"Operating within the regulatory framework of the State of Kuwait, Almanza serves institutional clients, corporate entities, and qualified private investors through a programme-centric investment architecture designed to ensure transparency and accountability at every delivery stage."})]}),f.jsxs("div",{className:"flex flex-col justify-between",children:[f.jsx("div",{className:"grid grid-cols-2 gap-px",style:{border:"1px solid #E6EAF0",background:"#E6EAF0"},children:[{label:"Program Categories",value:"6"},{label:"Asset Classes",value:"Multi"},{label:"Client Segments",value:"3"},{label:"Governance Bodies",value:"3"}].map(e=>f.jsxs("div",{style:{background:"#fff",padding:"20px 18px"},children:[f.jsx("div",{style:{fontSize:"22px",fontWeight:700,color:"#0A1A2F",letterSpacing:"-0.02em",lineHeight:1,marginBottom:"6px"},children:e.value}),f.jsx("div",{className:"almanza-label",children:e.label})]},e.label))}),f.jsx("div",{style:{marginTop:"16px",padding:"14px 16px",background:"#F7F9FC",borderLeft:"3px solid #0A1A2F"},children:f.jsx("p",{style:{fontSize:"12.5px",fontWeight:400,color:"#374151",lineHeight:1.65,fontStyle:"italic"},children:'"Each program operates under a formal investment mandate with defined execution pathways and governance oversight."'})})]})]}),f.jsx("div",{className:"almanza-divider mt-10"})]})}),YE=[{program:"Investment Advisory",mandateType:"Strategic",structure:"Advisory Engagement",assetFocus:"Multi-Asset",delivery:"Non-Discretionary"},{program:"Asset Management",mandateType:"Discretionary",structure:"Managed Portfolio",assetFocus:"Public Markets",delivery:"Discretionary"},{program:"Private Equity",mandateType:"Direct Investment",structure:"Structured Investment",assetFocus:"Private Markets",delivery:"Fund / Direct"},{program:"Real Estate Investment",mandateType:"Asset-Backed",structure:"Property Investment",assetFocus:"Real Assets",delivery:"Direct / Joint Venture"},{program:"Wealth Management",mandateType:"Comprehensive",structure:"Integrated Mandate",assetFocus:"Multi-Asset",delivery:"Advisory / Discretionary"},{program:"Retirement Planning",mandateType:"Long-Term Capital",structure:"Structured Planning",assetFocus:"Diversified",delivery:"Advisory"}],qE=()=>f.jsx("section",{className:"w-full",style:{padding:"56px 24px",background:"#F7F9FC"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("span",{className:"almanza-label block mb-4",children:"02 — Program Classification"}),f.jsxs("div",{className:"flex items-end justify-between mb-6",children:[f.jsx("h2",{className:"almanza-section-title",children:"Investment Program Classification Registry"}),f.jsx("span",{style:{fontSize:"11.5px",color:"#6B7280",fontWeight:400},children:"6 Mandated Programs"})]}),f.jsx("p",{className:"almanza-body mb-8",style:{maxWidth:"620px"},children:"All investment programs are classified by mandate type, structural framework, asset focus, and delivery model. This registry provides the formal basis for client program selection and engagement."}),f.jsx("div",{style:{overflowX:"auto"},children:f.jsxs("table",{className:"almanza-table",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Program"}),f.jsx("th",{children:"Mandate Type"}),f.jsx("th",{children:"Structure"}),f.jsx("th",{children:"Asset Focus"}),f.jsx("th",{children:"Delivery"})]})}),f.jsx("tbody",{children:YE.map((e,t)=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("span",{style:{fontWeight:600,color:"#0A1A2F",fontSize:"13.5px"},children:e.program})}),f.jsx("td",{children:e.mandateType}),f.jsx("td",{children:e.structure}),f.jsx("td",{children:e.assetFocus}),f.jsx("td",{children:f.jsx("span",{className:"almanza-tag",children:e.delivery})})]},t))})]})})]})}),XE=({program:e,isAlt:t=!1})=>f.jsxs("article",{style:{background:t?"#F7F9FC":"#fff",border:"1px solid #E6EAF0",padding:"0",marginBottom:"0"},children:[f.jsxs("div",{style:{padding:"20px 24px 18px",borderBottom:"1px solid #E6EAF0",display:"flex",alignItems:"flex-start",justifyContent:"space-between",gap:"16px"},children:[f.jsxs("div",{children:[f.jsxs("div",{style:{marginBottom:"6px"},children:[f.jsx("span",{className:"almanza-label",style:{marginRight:"12px"},children:e.number}),f.jsx("span",{className:"almanza-tag",children:e.mandateTag})]}),f.jsx("h3",{className:"almanza-program-title",style:{fontSize:"16px"},children:e.name})]}),f.jsx("div",{className:"flex flex-wrap gap-1.5",style:{flexShrink:0},children:e.clientApplicability.map(n=>f.jsx("span",{style:{fontSize:"10px",fontWeight:500,letterSpacing:"0.05em",textTransform:"uppercase",padding:"3px 8px",background:"#0A1A2F",color:"#fff",whiteSpace:"nowrap"},children:n},n))})]}),f.jsxs("div",{className:"grid",style:{gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",borderBottom:"1px solid #E6EAF0"},children:[f.jsxs("div",{style:{padding:"18px 24px",borderRight:"1px solid #E6EAF0"},children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"8px"},children:"Mandate Definition"}),f.jsx("p",{style:{fontSize:"13.5px",color:"#374151",lineHeight:1.65},children:e.mandateDefinition})]}),f.jsxs("div",{style:{padding:"18px 24px",borderRight:"1px solid #E6EAF0"},children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"8px"},children:"Program Structure"}),f.jsx("ul",{style:{listStyle:"none",padding:0,margin:0},children:e.programStructure.map((n,r)=>f.jsxs("li",{style:{fontSize:"13px",color:"#374151",padding:"3px 0",paddingLeft:"12px",position:"relative",lineHeight:1.55},children:[f.jsx("span",{style:{position:"absolute",left:0,top:"7px",width:"4px",height:"1px",background:"#6B7280",display:"block"}}),n.label]},r))})]}),f.jsxs("div",{style:{padding:"18px 24px"},children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"8px"},children:"Execution Pathway"}),f.jsx("ul",{style:{listStyle:"none",padding:0,margin:0,marginBottom:"14px"},children:e.executionPathway.map((n,r)=>f.jsxs("li",{style:{fontSize:"13px",color:"#374151",padding:"3px 0",paddingLeft:"20px",position:"relative",lineHeight:1.55},children:[f.jsx("span",{style:{position:"absolute",left:0,top:"4px",fontSize:"10px",color:"#9CA3AF",fontWeight:600},children:r+1}),n]},r))}),f.jsx("div",{style:{paddingTop:"12px",borderTop:"1px solid #E6EAF0"},children:f.jsxs("div",{style:{display:"flex",gap:"24px"},children:[f.jsxs("div",{children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"3px"},children:"Oversight"}),f.jsx("p",{style:{fontSize:"12.5px",color:"#0A1A2F",fontWeight:500},children:e.oversightBody})]}),f.jsxs("div",{children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"3px"},children:"Review Cycle"}),f.jsx("p",{style:{fontSize:"12.5px",color:"#0A1A2F",fontWeight:500},children:e.reviewFrequency})]})]})})]})]}),f.jsx("div",{style:{padding:"12px 24px",display:"flex",alignItems:"center",justifyContent:"flex-end"},children:f.jsx("button",{style:{fontSize:"11.5px",fontWeight:500,letterSpacing:"0.06em",textTransform:"uppercase",color:"#0A1A2F",background:"transparent",border:"none",cursor:"pointer",padding:"8px 0",borderBottom:"1px solid transparent",transition:"border-color 0.2s",minHeight:"44px",display:"flex",alignItems:"center"},onMouseEnter:n=>n.currentTarget.style.borderBottomColor="#0A1A2F",onMouseLeave:n=>n.currentTarget.style.borderBottomColor="transparent",children:"View Program Details →"})})]}),ZE=[{id:"advisory",number:"3.1",name:"Investment Advisory Program",mandateTag:"Non-Discretionary · Strategic",mandateDefinition:"Provide strategic investment guidance aligned with client objectives and prevailing market conditions, through rigorous research and structured advisory engagement.",programStructure:[{label:"Strategic asset allocation framework"},{label:"Market intelligence and analysis"},{label:"Risk assessment and scenario modelling"},{label:"Portfolio review and rebalancing advisory"}],executionPathway:["Research generation and market analysis","Internal Investment Committee review","Advisory delivery to client mandate","Performance monitoring and periodic reporting"],oversightBody:"Investment Committee",reviewFrequency:"Quarterly",clientApplicability:["Institutional","Corporate","High-Net-Worth Individuals"]},{id:"asset-management",number:"3.2",name:"Asset Management Program",mandateTag:"Discretionary · Managed Portfolio",mandateDefinition:"Deliver discretionary portfolio management across public market asset classes, with full investment authority exercised within the parameters of the client mandate.",programStructure:[{label:"Mandate-based portfolio construction"},{label:"Active asset allocation and rebalancing"},{label:"Equity and fixed income management"},{label:"Performance attribution and reporting"}],executionPathway:["Mandate definition and client profiling","Portfolio construction and asset allocation","Trade execution and position management","Continuous monitoring and client reporting"],oversightBody:"Investment Committee",reviewFrequency:"Monthly",clientApplicability:["Institutional","High-Net-Worth Individuals"]},{id:"private-equity",number:"3.3",name:"Private Equity Program",mandateTag:"Direct Investment · Structured",mandateDefinition:"Execute direct equity investments and structured capital placements in private companies operating across target sectors and geographies within the GCC region.",programStructure:[{label:"Deal origination and pipeline management"},{label:"Due diligence and transaction structuring"},{label:"Value creation and portfolio management"},{label:"Exit strategy and realisation planning"}],executionPathway:["Opportunity identification and initial screening","Investment Committee approval and mandate confirmation","Transaction structuring and legal documentation","Post-investment monitoring and value enhancement"],oversightBody:"Investment Committee",reviewFrequency:"Semi-Annual",clientApplicability:["Institutional","Corporate"]},{id:"real-estate",number:"3.4",name:"Real Estate Investment Program",mandateTag:"Asset-Backed · Direct / Joint Venture",mandateDefinition:"Structure and manage direct real estate investments and joint venture arrangements targeting income-generating and capital appreciation assets across Kuwait and the GCC.",programStructure:[{label:"Asset identification and acquisition"},{label:"Investment structuring and financing"},{label:"Asset management and income optimisation"},{label:"Valuation, reporting, and exit management"}],executionPathway:["Property screening and market assessment","Valuation, legal and technical due diligence","Transaction execution and asset acquisition","Ongoing asset management and performance monitoring"],oversightBody:"Investment Committee",reviewFrequency:"Quarterly",clientApplicability:["Institutional","Corporate","High-Net-Worth Individuals"]},{id:"wealth-management",number:"3.5",name:"Wealth Management Program",mandateTag:"Comprehensive · Advisory / Discretionary",mandateDefinition:"Deliver integrated multi-asset wealth structuring, preservation, and growth mandates for qualified private investors through a comprehensive advisory framework.",programStructure:[{label:"Holistic wealth assessment and goal mapping"},{label:"Multi-asset portfolio structuring"},{label:"Estate and succession planning integration"},{label:"Tax efficiency and risk optimisation"}],executionPathway:["Client objectives and risk profile assessment","Bespoke mandate design and documentation","Portfolio implementation and ongoing management","Regular performance review and mandate alignment"],oversightBody:"Investment Committee",reviewFrequency:"Quarterly",clientApplicability:["High-Net-Worth Individuals"]},{id:"retirement",number:"3.6",name:"Retirement Planning Program",mandateTag:"Long-Term Capital · Advisory",mandateDefinition:"Structure long-term capital accumulation and income planning mandates aligned with the retirement objectives and time horizons of individual and corporate clients.",programStructure:[{label:"Retirement income needs analysis"},{label:"Long-term capital accumulation strategy"},{label:"Liability-matching and income structuring"},{label:"Drawdown planning and annuity structuring"}],executionPathway:["Retirement objective and timeline definition","Long-term investment mandate formulation","Portfolio implementation and monitoring","Periodic review and plan adjustment"],oversightBody:"Investment Committee",reviewFrequency:"Annual",clientApplicability:["Corporate","High-Net-Worth Individuals"]}],JE=()=>f.jsx("section",{id:"programs",className:"w-full",style:{padding:"56px 24px",background:"#fff"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("span",{className:"almanza-label block mb-4",children:"03 — Investment Programs"}),f.jsxs("div",{className:"flex items-end justify-between mb-3",style:{flexWrap:"wrap",gap:"12px"},children:[f.jsx("h2",{className:"almanza-section-title",children:"Mandated Investment Program Register"}),f.jsx("span",{style:{fontSize:"11.5px",color:"#6B7280",fontWeight:400},children:"Formal program modules — structured by mandate, execution, and governance"})]}),f.jsx("p",{className:"almanza-body mb-8",style:{maxWidth:"680px"},children:"Each program below represents a formally structured investment mandate. Programs are defined by their mandate type, structural framework, execution pathway, and governance accountability — not by marketing categories."}),f.jsx("div",{className:"almanza-divider mb-8"}),f.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"16px"},children:ZE.map((e,t)=>f.jsx(XE,{program:e,isAlt:t%2===1},e.id))})]})}),eC=[{stage:"01 — Origination",description:"Investment opportunity identification",detail:"Systematic identification and initial screening of investment opportunities across mandated asset classes, markets, and geographies through proprietary research and market intelligence.",input:"Market intelligence, deal flow",output:"Screened opportunity set"},{stage:"02 — Structuring",description:"Investment design and mandate formulation",detail:"Definition of investment structure, risk parameters, return targets, and mandate boundaries. Legal and financial documentation prepared and reviewed by internal counsel.",input:"Screened opportunity, client mandate",output:"Defined investment structure"},{stage:"03 — Committee Review",description:"Internal governance approval",detail:"All investments are subject to formal review and approval by the Investment Committee before execution. Risk Committee is consulted for positions exceeding defined concentration thresholds.",input:"Investment proposal and supporting analysis",output:"Approved or declined mandate"},{stage:"04 — Execution",description:"Implementation and deployment",detail:"Disciplined execution of the approved investment mandate in accordance with defined parameters, timing, and market conditions. Transaction documentation is finalised and retained.",input:"Approved mandate, market access",output:"Executed investment position"},{stage:"05 — Monitoring",description:"Ongoing performance tracking",detail:"Continuous monitoring of investment performance against mandate benchmarks. Periodic reporting to the Investment Committee with risk-adjusted performance attribution and covenant compliance review.",input:"Live portfolio data",output:"Performance reports, compliance status"},{stage:"06 — Review & Realisation",description:"Mandate assessment and exit management",detail:"Structured review of mandate performance against defined objectives. Exit strategy formulation and execution where applicable, with proceeds redeployment or distribution per mandate terms.",input:"Performance assessment, market conditions",output:"Mandate review report, exit completion"}],tC=()=>f.jsx("section",{className:"w-full",style:{padding:"56px 24px",background:"#F7F9FC"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("span",{className:"almanza-label block mb-4",children:"04 — Execution Pipeline"}),f.jsx("div",{className:"flex items-end justify-between mb-3",style:{flexWrap:"wrap",gap:"12px"},children:f.jsx("h2",{className:"almanza-section-title",children:"Structured Investment Execution Pipeline"})}),f.jsx("p",{className:"almanza-body mb-8",style:{maxWidth:"680px"},children:"Investment programs are delivered through a structured, six-stage execution pipeline ensuring consistency, discipline, and performance alignment across all mandates and asset classes."}),f.jsx("div",{style:{overflowX:"auto"},children:f.jsxs("table",{className:"almanza-table",style:{marginBottom:"0"},children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{style:{width:"180px"},children:"Stage"}),f.jsx("th",{style:{width:"200px"},children:"Description"}),f.jsx("th",{children:"Process Definition"}),f.jsx("th",{style:{width:"180px"},children:"Input"}),f.jsx("th",{style:{width:"180px"},children:"Output"})]})}),f.jsx("tbody",{children:eC.map((e,t)=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("span",{style:{fontWeight:600,color:"#0A1A2F",fontSize:"13px",display:"block"},children:e.stage})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"13px",color:"#374151",fontStyle:"italic"},children:e.description})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"13px",color:"#374151"},children:e.detail})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"12.5px",color:"#6B7280"},children:e.input})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"12.5px",color:"#6B7280"},children:e.output})})]},t))})]})})]})}),nC=[{function:"Investment Strategy & Mandate Approval",body:"Investment Committee",composition:"Chief Investment Officer, Senior Investment Managers, Risk Officer",responsibility:"Final approval of all investment mandates, program parameters, asset allocation decisions, and significant portfolio transactions.",frequency:"Monthly (minimum) / As required",reportingLine:"Board of Directors"},{function:"Financial Reporting & Audit Oversight",body:"Audit Committee",composition:"Independent Board Members, Chief Financial Officer",responsibility:"Oversight of financial statements, internal audit processes, external auditor relations, and compliance with applicable accounting standards.",frequency:"Quarterly",reportingLine:"Board of Directors"},{function:"Risk Management & Compliance",body:"Risk Committee",composition:"Chief Risk Officer, Compliance Officer, Investment Committee Representative",responsibility:"Definition and monitoring of risk parameters, concentration limits, regulatory compliance, and AML/KYC policy adherence across all investment programs.",frequency:"Monthly",reportingLine:"Board of Directors"},{function:"Operational Governance",body:"Executive Management",composition:"Chief Executive Officer, Chief Operating Officer, Department Heads",responsibility:"Day-to-day operational oversight, resource allocation, vendor management, and internal process governance across all business units.",frequency:"Ongoing",reportingLine:"Investment Committee / Board"}],rC=()=>f.jsx("section",{className:"w-full",style:{padding:"56px 24px",background:"#fff"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("span",{className:"almanza-label block mb-4",children:"05 — Governance Pathway"}),f.jsx("div",{className:"flex items-end justify-between mb-3",style:{flexWrap:"wrap",gap:"12px"},children:f.jsx("h2",{className:"almanza-section-title",children:"Investment Program Governance Framework"})}),f.jsx("p",{className:"almanza-body mb-8",style:{maxWidth:"680px"},children:"Each investment program operates within defined governance structures to ensure accountability, transparency, and rigorous risk management. All governance bodies report directly to the Board of Directors."}),f.jsx("div",{style:{padding:"18px 24px",background:"#F7F9FC",border:"1px solid #E6EAF0",borderLeft:"3px solid #0A1A2F",marginBottom:"28px"},children:f.jsx("p",{style:{fontSize:"13.5px",color:"#374151",lineHeight:1.7,maxWidth:"780px"},children:"Almanza Investment Company maintains a three-tier governance architecture comprising Board-level oversight, Committee-level review, and operational management. No investment mandate is executed without formal approval from the relevant governance body. All governance activities are documented and subject to independent audit."})}),f.jsx("div",{style:{overflowX:"auto"},children:f.jsxs("table",{className:"almanza-table",children:[f.jsx("thead",{children:f.jsxs("tr",{children:[f.jsx("th",{children:"Governance Function"}),f.jsx("th",{children:"Oversight Body"}),f.jsx("th",{children:"Composition"}),f.jsx("th",{children:"Primary Responsibility"}),f.jsx("th",{style:{width:"130px"},children:"Review Frequency"}),f.jsx("th",{style:{width:"160px"},children:"Reporting Line"})]})}),f.jsx("tbody",{children:nC.map((e,t)=>f.jsxs("tr",{children:[f.jsx("td",{children:f.jsx("span",{style:{fontWeight:600,color:"#0A1A2F",fontSize:"13px"},children:e.function})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"13px",color:"#0A1A2F",fontWeight:500},children:e.body})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"12.5px",color:"#6B7280"},children:e.composition})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"13px",color:"#374151"},children:e.responsibility})}),f.jsx("td",{children:f.jsx("span",{className:"almanza-tag",children:e.frequency})}),f.jsx("td",{children:f.jsx("span",{style:{fontSize:"12.5px",color:"#374151",fontWeight:500},children:e.reportingLine})})]},t))})]})})]})}),Sf=[{segment:"Institutional Clients",code:"INST",description:"Sovereign wealth funds, pension funds, endowments, insurance companies, and regulated financial institutions.",programs:["Investment Advisory","Asset Management","Private Equity","Real Estate Investment"],objectives:"Capital preservation, long-term growth, liability matching",riskProfile:"Institutional risk framework",minimumThreshold:"KWD 500,000+",engagementModel:"Direct mandate / RFP process"},{segment:"Corporate Clients",code:"CORP",description:"Listed and private companies, family conglomerates, joint ventures, and corporate treasury operations requiring investment mandate services.",programs:["Investment Advisory","Private Equity","Real Estate Investment","Retirement Planning"],objectives:"Treasury optimisation, strategic investments, capital deployment",riskProfile:"Corporate risk parameters",minimumThreshold:"KWD 250,000+",engagementModel:"Corporate mandate agreement"},{segment:"High-Net-Worth Individuals",code:"HNWI",description:"Qualified private investors, family offices, and ultra-high-net-worth individuals seeking structured, institutional-grade investment solutions.",programs:["Investment Advisory","Asset Management","Real Estate Investment","Wealth Management","Retirement Planning"],objectives:"Wealth preservation, growth, succession planning",riskProfile:"Personalised risk assessment",minimumThreshold:"KWD 100,000+",engagementModel:"Private client mandate"}],oC=()=>f.jsx("section",{className:"w-full",style:{padding:"56px 24px",background:"#F7F9FC"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("span",{className:"almanza-label block mb-4",children:"06 — Client Alignment"}),f.jsx("div",{className:"flex items-end justify-between mb-3",style:{flexWrap:"wrap",gap:"12px"},children:f.jsx("h2",{className:"almanza-section-title",children:"Client Segment Alignment Model"})}),f.jsx("p",{className:"almanza-body mb-8",style:{maxWidth:"680px"},children:"Investment programs are aligned to specific client segments based on objectives, risk profiles, capital requirements, and regulatory classification. Engagement models are tailored to each segment."}),f.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"0",border:"1px solid #E6EAF0"},children:Sf.map((e,t)=>f.jsxs("div",{style:{borderBottom:tf.jsx("li",{style:{fontSize:"12.5px",color:"#374151",padding:"2px 0",paddingLeft:"8px",borderLeft:"1px solid #E6EAF0",marginBottom:"2px"},children:n},r))})]}),f.jsxs("div",{style:{padding:"16px 18px",borderRight:"1px solid #E6EAF0"},children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"6px"},children:"Primary Objectives"}),f.jsx("p",{style:{fontSize:"12.5px",color:"#374151",lineHeight:1.6,marginBottom:"12px"},children:e.objectives}),f.jsx("p",{className:"almanza-label",style:{marginBottom:"4px"},children:"Risk Profile"}),f.jsx("span",{className:"almanza-tag",children:e.riskProfile})]}),f.jsxs("div",{style:{padding:"16px 18px"},children:[f.jsx("p",{className:"almanza-label",style:{marginBottom:"6px"},children:"Minimum Threshold"}),f.jsx("p",{style:{fontSize:"15px",fontWeight:600,color:"#0A1A2F",marginBottom:"12px"},children:e.minimumThreshold}),f.jsx("p",{className:"almanza-label",style:{marginBottom:"4px"},children:"Engagement Model"}),f.jsx("p",{style:{fontSize:"12.5px",color:"#374151"},children:e.engagementModel})]})]})]},t))})]})}),iC=[{label:"Investment Approach",description:"Overview of Al Amal's investment philosophy, asset allocation methodology, and risk management framework.",ref:"AL-INV-001"},{label:"Financial Results",description:"Audited financial statements and performance disclosures for the current and prior reporting periods.",ref:"AL-FIN-002"},{label:"About Almanza Investment",description:"Corporate profile, shareholding structure, regulatory status, and board composition.",ref:"AL-CORP-003"},{label:"Risk Disclosure Statement",description:"Formal risk disclosure covering market, credit, liquidity, and operational risk factors applicable to all mandates.",ref:"AL-RISK-004"}],sC=()=>f.jsx("section",{className:"w-full",style:{padding:"48px 24px",background:"#fff"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsx("div",{className:"almanza-divider mb-8"}),f.jsxs("div",{className:"flex items-center justify-between mb-6",style:{flexWrap:"wrap",gap:"12px"},children:[f.jsx("span",{className:"almanza-label",children:"Related Disclosures & Documentation"}),f.jsx("span",{style:{fontSize:"11.5px",color:"#6B7280"},children:"For institutional and qualified client reference"})]}),f.jsx("div",{style:{display:"grid",gridTemplateColumns:"repeat(auto-fit, minmax(240px, 1fr))",gap:"1px",background:"#E6EAF0",border:"1px solid #E6EAF0"},children:iC.map((e,t)=>f.jsxs("div",{style:{background:"#fff",padding:"18px 20px",transition:"background 0.15s",cursor:"pointer"},onMouseEnter:n=>n.currentTarget.style.background="#F7F9FC",onMouseLeave:n=>n.currentTarget.style.background="#fff",children:[f.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"8px"},children:[f.jsx("span",{style:{fontSize:"13.5px",fontWeight:600,color:"#0A1A2F"},children:e.label}),f.jsx("span",{style:{fontSize:"10px",color:"#9CA3AF",fontFamily:"monospace",marginLeft:"12px",flexShrink:0},children:e.ref})]}),f.jsx("p",{style:{fontSize:"12.5px",color:"#6B7280",lineHeight:1.6},children:e.description}),f.jsx("span",{style:{display:"inline-block",marginTop:"10px",fontSize:"11px",fontWeight:500,letterSpacing:"0.06em",textTransform:"uppercase",color:"#0A1A2F",borderBottom:"1px solid #E6EAF0",paddingBottom:"1px"},children:"View Document →"})]},t))}),f.jsx("div",{className:"almanza-divider mt-8"})]})}),lC=()=>f.jsx("section",{id:"contact",className:"w-full",style:{padding:"72px 24px 80px",background:"#0A1A2F"},children:f.jsxs("div",{style:{maxWidth:"1160px",margin:"0 auto"},children:[f.jsxs("div",{className:"grid gap-12",style:{gridTemplateColumns:"1fr 1fr"},children:[f.jsxs("div",{children:[f.jsx("span",{style:{fontSize:"11px",fontWeight:500,letterSpacing:"0.14em",textTransform:"uppercase",color:"rgba(255,255,255,0.45)",display:"block",marginBottom:"18px",borderLeft:"2px solid rgba(255,255,255,0.25)",paddingLeft:"10px"},children:"Engage with Almanza Investment"}),f.jsx("h2",{style:{fontSize:"22px",fontWeight:600,color:"#fff",letterSpacing:"-0.02em",lineHeight:1.3,marginBottom:"16px"},children:"Access Structured, Institutional-Grade Investment Programs"}),f.jsx("p",{style:{fontSize:"14px",color:"rgba(255,255,255,0.65)",lineHeight:1.7,maxWidth:"440px"},children:"Engage with Almanza Investment to access formally mandated investment programs, structured execution pathways, and governance-backed performance accountability."})]}),f.jsx("div",{className:"flex flex-col justify-center",children:f.jsxs("div",{style:{padding:"28px",border:"1px solid rgba(255,255,255,0.12)",background:"rgba(255,255,255,0.04)"},children:[f.jsx("p",{style:{fontSize:"12px",fontWeight:500,letterSpacing:"0.08em",textTransform:"uppercase",color:"rgba(255,255,255,0.45)",marginBottom:"18px"},children:"Investment Team Contact"}),f.jsx("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"12px",marginBottom:"18px"},children:[{label:"General Enquiries",value:"info@almanzainvestment.com"},{label:"Investment Mandates",value:"invest@almanzainvestment.com"},{label:"Institutional Relations",value:"institutional@almanzainvestment.com"},{label:"Office Location",value:"Kuwait City, State of Kuwait"}].map((e,t)=>f.jsxs("div",{children:[f.jsx("p",{style:{fontSize:"10px",fontWeight:500,letterSpacing:"0.08em",textTransform:"uppercase",color:"rgba(255,255,255,0.35)",marginBottom:"3px"},children:e.label}),f.jsx("p",{style:{fontSize:"12.5px",color:"rgba(255,255,255,0.75)",lineHeight:1.5},children:e.value})]},t))}),f.jsx("button",{style:{width:"100%",padding:"14px 24px",background:"#fff",color:"#0A1A2F",fontSize:"12px",fontWeight:700,letterSpacing:"0.08em",textTransform:"uppercase",border:"none",cursor:"pointer",transition:"opacity 0.2s",minHeight:"44px"},onMouseEnter:e=>e.currentTarget.style.opacity="0.9",onMouseLeave:e=>e.currentTarget.style.opacity="1",children:"Contact Investment Team"})]})})]}),f.jsxs("div",{style:{marginTop:"56px",paddingTop:"24px",borderTop:"1px solid rgba(255,255,255,0.1)",display:"flex",justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"12px"},children:[f.jsxs("div",{children:[f.jsx("span",{style:{fontSize:"12px",fontWeight:700,letterSpacing:"0.1em",textTransform:"uppercase",color:"rgba(255,255,255,0.85)"},children:"ALMANZA INVESTMENT COMPANY"}),f.jsx("span",{style:{fontSize:"11px",color:"rgba(255,255,255,0.35)",marginLeft:"16px"},children:"State of Kuwait · Regulated Entity"})]}),f.jsx("p",{style:{fontSize:"11px",color:"rgba(255,255,255,0.3)",maxWidth:"480px",textAlign:"right",lineHeight:1.6},children:"This page constitutes a general overview of investment programs and does not constitute an offer or solicitation to invest. Investment programs are subject to applicable regulatory approval and mandate eligibility criteria."})]})]})}),aC=()=>f.jsxs("div",{style:{fontFamily:"'Inter', -apple-system, BlinkMacSystemFont, sans-serif",background:"#fff"},children:[f.jsx(VE,{}),f.jsx(KE,{}),f.jsx(GE,{}),f.jsx(qE,{}),f.jsx(JE,{}),f.jsx(tC,{}),f.jsx(rC,{}),f.jsx(oC,{}),f.jsx(sC,{}),f.jsx(lC,{})]}),uC=()=>{const e=fr();return x.useEffect(()=>{console.error("404 Error: User attempted to access non-existent route:",e.pathname)},[e.pathname]),f.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gray-100",children:f.jsxs("div",{className:"text-center",children:[f.jsx("h1",{className:"text-4xl font-bold mb-4",children:"404"}),f.jsx("p",{className:"text-xl text-gray-600 mb-4",children:"Oops! Page not found"}),f.jsx("a",{href:"/",className:"text-blue-500 hover:text-blue-700 underline",children:"Return to Home"})]})})},cC=new $S,dC=()=>f.jsx(WS,{client:cC,children:f.jsxs(cS,{children:[f.jsx(Kx,{}),f.jsx(kw,{}),f.jsx(BE,{children:f.jsxs(_E,{children:[f.jsx(ss,{path:"/",element:f.jsx(OE,{to:"/services",replace:!0})}),f.jsx(ss,{path:"/services",element:f.jsx(aC,{})}),f.jsx(ss,{path:"*",element:f.jsx(uC,{})})]})})]})});Qm(document.getElementById("root")).render(f.jsx(dC,{}));